forked from ALHP/ALHP.GO
improve logging
This commit is contained in:
@@ -141,12 +141,11 @@ func housekeeping(repo, march string, wg *sync.WaitGroup) error {
|
||||
case dbPkg.Status == dbpackage.StatusLatest && dbPkg.RepoVersion != "":
|
||||
// check lastVersionBuild
|
||||
if dbPkg.LastVersionBuild != dbPkg.RepoVersion {
|
||||
oldVer := dbPkg.LastVersionBuild
|
||||
log.Infof("[HK/%s] updating lastVersionBuild %s -> %s", fullRepo, dbPkg.LastVersionBuild, dbPkg.RepoVersion)
|
||||
dbPkg, err = dbPkg.Update().SetLastVersionBuild(dbPkg.RepoVersion).Save(context.Background())
|
||||
if err != nil {
|
||||
log.Warningf("[HK/%s] error updating lastVersionBuild for %s: %v", fullRepo, dbPkg.Pkgbase, err)
|
||||
}
|
||||
log.Infof("[HK/%s] updated lastVersionBuild %s -> %s", fullRepo, oldVer, dbPkg.RepoVersion)
|
||||
}
|
||||
|
||||
var existingSplits []string
|
||||
|
Reference in New Issue
Block a user