Maint: log line fix for updater version diff
package storage
import (
+ "fmt"
"strconv"
"time"
@@ -16,6 +17,7 @@ func (s *storage) logVersionDiff(provider string, diff int) {
if diff > 1 {
message += "s"
}
+ message += " behind"
s.logger.Info(message)
}
@@ -284,6 +286,8 @@ func (s *storage) mergeWindscribe(hardcoded, persisted models.WindscribeServers)
return hardcoded
}
+ s.logger.Info("hardcoded.Version: " + fmt.Sprint(hardcoded.Version))
+ s.logger.Info("persisted.Version: " + fmt.Sprint(persisted.Version))
versionDiff := int(hardcoded.Version) - int(persisted.Version)
if versionDiff > 0 {
s.logVersionDiff("Windscribe", versionDiff)
