From 7b28db40ce6cbd8ce9ccd4d2bdc7550dfd01cb2b Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sat, 13 Aug 2022 10:56:58 +0200 Subject: [PATCH] improved debug logging --- main.go | 1 + utils.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 4cc6529..a94d2bb 100644 --- a/main.go +++ b/main.go @@ -393,6 +393,7 @@ func (b *BuildManager) syncWorker(ctx context.Context) error { } b.alpmMutex.Unlock() + log.Debugf("generating build-queue for PKGBUILDs found in %s", filepath.Join(conf.Basedir.Work, upstreamDir, "/**/PKGBUILD")) queue, err := b.queue(filepath.Join(conf.Basedir.Work, upstreamDir, "/**/PKGBUILD")) if err != nil { log.Warningf("Error building buildQueue: %v", err) diff --git a/utils.go b/utils.go index 6cdf055..380cf6a 100644 --- a/utils.go +++ b/utils.go @@ -600,7 +600,6 @@ func housekeeping(repo string, march string, wg *sync.WaitGroup) error { } } - // TODO: remove queued status from packages that are not eligible qPackages, err := db.DbPackage.Query().Where( dbpackage.And( dbpackage.RepositoryEQ(dbpackage.Repository(repo)), @@ -635,6 +634,7 @@ func housekeeping(repo string, march string, wg *sync.WaitGroup) error { } } + log.Debugf("[HK] all tasks finished") return nil }