diff --git a/service/intel/filterlists/index.go b/service/intel/filterlists/index.go index 042be684..d50250a4 100644 --- a/service/intel/filterlists/index.go +++ b/service/intel/filterlists/index.go @@ -209,7 +209,7 @@ func updateListIndex() error { ) default: // List is in cache and current, there is nothing to do. - log.Debug("filterlists: index is up to date") + log.Debugf("filterlists: index is up to date (%s == %s)", index.Version, listIndexUpdate.Version) // Update the unbreak filter list IDs on initial load. updateUnbreakFilterListIDs() diff --git a/service/intel/filterlists/updater.go b/service/intel/filterlists/updater.go index 53227264..d404b8c0 100644 --- a/service/intel/filterlists/updater.go +++ b/service/intel/filterlists/updater.go @@ -238,7 +238,7 @@ func getUpgradableFiles() ([]*updates.Artifact, error) { func resolveUpdateOrder(updateOrder []*updates.Artifact) ([]*updates.Artifact, error) { // sort the update order by ascending version sort.Sort(byAscVersion(updateOrder)) - log.Tracef("intel/filterlists: order of updates: %v", updateOrder) + log.Tracef("intel/filterlists: order of potential updates: %v", updateOrder) var cacheDBVersion *version.Version if !isLoaded() { diff --git a/service/updates/index.go b/service/updates/index.go index 63546012..5b143538 100644 --- a/service/updates/index.go +++ b/service/updates/index.go @@ -59,6 +59,10 @@ func (a *Artifact) SemVer() *semver.Version { return a.versionNum } +func (a *Artifact) String() string { + return fmt.Sprintf("%s(v%s)", a.Filename, a.Version) +} + // IsNewerThan returns whether the artifact is newer than the given artifact. // Returns true if the given artifact is nil. // The second return value "ok" is false when version could not be compared.