From 031aa3c529fa86ab850fed21e106394bab70a5b4 Mon Sep 17 00:00:00 2001 From: Alejandro Lopez Date: Tue, 8 Aug 2023 09:45:36 +0300 Subject: [PATCH] [#575] writecache: Fix log level for badger writecache Signed-off-by: Alejandro Lopez --- .../writecache/writecachebadger/util.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/local_object_storage/writecache/writecachebadger/util.go b/pkg/local_object_storage/writecache/writecachebadger/util.go index 1bb278f0a..6d72c2039 100644 --- a/pkg/local_object_storage/writecache/writecachebadger/util.go +++ b/pkg/local_object_storage/writecache/writecachebadger/util.go @@ -24,13 +24,13 @@ func (w badgerLoggerWrapper) Errorf(msg string, args ...any) { } func (w badgerLoggerWrapper) Warningf(msg string, args ...any) { - w.l.Error(fmt.Sprintf(msg, args...)) + w.l.Warn(fmt.Sprintf(msg, args...)) } func (w badgerLoggerWrapper) Infof(msg string, args ...any) { - w.l.Error(fmt.Sprintf(msg, args...)) + w.l.Info(fmt.Sprintf(msg, args...)) } func (w badgerLoggerWrapper) Debugf(msg string, args ...any) { - w.l.Error(fmt.Sprintf(msg, args...)) + w.l.Debug(fmt.Sprintf(msg, args...)) } -- 2.45.2