From 62327739430b94dad4feabc5aeff0ea0ae3c45dd Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 27 Oct 2021 11:11:48 +0200 Subject: [PATCH] Use debug instead of info for some log messages These log messages are not relevant for the info level. --- cmd/icingadb/main.go | 2 +- pkg/icingadb/overdue/sync.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/icingadb/main.go b/cmd/icingadb/main.go index 74d55277..7b74927b 100644 --- a/cmd/icingadb/main.go +++ b/cmd/icingadb/main.go @@ -150,7 +150,7 @@ func run() int { dump := icingadb.NewDumpSignals(rc, logs.GetChildLogger("dump-signals")) g.Go(func() error { - logger.Info("Staring config dump signal handling") + logger.Debug("Staring config dump signal handling") return dump.Listen(synctx) }) diff --git a/pkg/icingadb/overdue/sync.go b/pkg/icingadb/overdue/sync.go index 58cac790..35cae63d 100644 --- a/pkg/icingadb/overdue/sync.go +++ b/pkg/icingadb/overdue/sync.go @@ -78,7 +78,7 @@ func (s Sync) Sync(ctx context.Context) error { // initSync initializes icingadb:overdue:objectType from the database. func (s Sync) initSync(ctx context.Context, objectType string) error { - s.logger.Infof("Refreshing already synced %s overdue indicators", objectType) + s.logger.Debugf("Refreshing already synced %s overdue indicators", objectType) start := time.Now() var rows []v1.IdMeta @@ -165,7 +165,7 @@ return res // sync synchronizes Redis overdue sets from s.redis to s.db for objectType. func (s Sync) sync(ctx context.Context, objectType string, factory factory, counter *com.Counter) error { - s.logger.Infof("Syncing %s overdue indicators", objectType) + s.logger.Debugf("Syncing %s overdue indicators", objectType) keys := [3]string{"icinga:nextupdate:" + objectType, "icingadb:overdue:" + objectType, ""} if rand, err := uuid.NewRandom(); err == nil {