From 41dde7161e447bd8a53916fb9e4ce0efa231f69a Mon Sep 17 00:00:00 2001 From: Javier Marcos <1271349+javuto@users.noreply.github.com> Date: Sat, 19 Oct 2024 00:23:02 +0200 Subject: [PATCH] Avoid spamming logs with unnecessary log entries for metadata mismatch --- logging/utils.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/logging/utils.go b/logging/utils.go index 7c4a915d..2518605d 100644 --- a/logging/utils.go +++ b/logging/utils.go @@ -2,7 +2,6 @@ package logging import ( "github.com/jmpsec/osctrl/backend" - "github.com/rs/zerolog/log" ) const ( @@ -33,7 +32,6 @@ func sameConfigDB(loggerOne, loggerTwo backend.JSONConfigurationDB) bool { // Helper to be used preparing metadata for each decorator func metadataVerification(dst, src string) string { if src != dst { - log.Warn().Msgf("mismatched metadata: %s != %s", dst, src) if dst == "" { return src }