[#575] writecache: Fix log level for badger writecache

Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
Alejandro Lopez 2023-08-08 09:45:36 +03:00 committed by Evgenii Stratonikov
parent d3a52ec73a
commit 7da4306e38

View file

@ -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...))
}