From 2fcdfb9a4adfb02f5b2658d2af8b060f01ac899c Mon Sep 17 00:00:00 2001 From: X-Guardian Date: Fri, 28 Jul 2023 14:05:16 +0100 Subject: [PATCH] Fix Simple Logger Log Function --- server/logging/simple_logger.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/logging/simple_logger.go b/server/logging/simple_logger.go index aa98c51a20..e7d18e5654 100644 --- a/server/logging/simple_logger.go +++ b/server/logging/simple_logger.go @@ -154,13 +154,13 @@ func (l *StructuredLogger) Err(format string, a ...interface{}) { func (l *StructuredLogger) Log(level LogLevel, format string, a ...interface{}) { switch level { case Debug: - l.Debug(format, a...) + l.z.Debugf(format, a...) case Info: - l.Info(format, a...) + l.z.Infof(format, a...) case Warn: - l.Warn(format, a...) + l.z.Warnf(format, a...) case Error: - l.Err(format, a...) + l.z.Errorf(format, a...) } }