This is an automated email from the ASF dual-hosted git repository.

dmwangnima pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/main by this push:
     new 545ad7216 fix: slice is not used...causing format bug. (#2639)
545ad7216 is described below

commit 545ad72162fca69ab9e9f06ad7dfc4e97e3d8ea1
Author: 不插电 <[email protected]>
AuthorDate: Sat Mar 16 14:11:59 2024 +0800

    fix: slice is not used...causing format bug. (#2639)
---
 logger/zap/zap.go | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/logger/zap/zap.go b/logger/zap/zap.go
index d8efc2bb0..c21d2a390 100644
--- a/logger/zap/zap.go
+++ b/logger/zap/zap.go
@@ -108,7 +108,7 @@ func (l *Logger) Debug(args ...interface{}) {
 }
 
 func (l *Logger) Debugf(template string, args ...interface{}) {
-       l.lg.Debugf(template, args)
+       l.lg.Debugf(template, args...)
 }
 
 func (l *Logger) Info(args ...interface{}) {
@@ -116,7 +116,7 @@ func (l *Logger) Info(args ...interface{}) {
 }
 
 func (l *Logger) Infof(template string, args ...interface{}) {
-       l.lg.Infof(template, args)
+       l.lg.Infof(template, args...)
 }
 
 func (l *Logger) Warn(args ...interface{}) {
@@ -124,7 +124,7 @@ func (l *Logger) Warn(args ...interface{}) {
 }
 
 func (l *Logger) Warnf(template string, args ...interface{}) {
-       l.lg.Warnf(template, args)
+       l.lg.Warnf(template, args...)
 }
 
 func (l *Logger) Error(args ...interface{}) {
@@ -132,7 +132,7 @@ func (l *Logger) Error(args ...interface{}) {
 }
 
 func (l *Logger) Errorf(template string, args ...interface{}) {
-       l.lg.Errorf(template, args)
+       l.lg.Errorf(template, args...)
 }
 
 func (l *Logger) Fatal(args ...interface{}) {
@@ -140,7 +140,7 @@ func (l *Logger) Fatal(args ...interface{}) {
 }
 
 func (l *Logger) Fatalf(fmt string, args ...interface{}) {
-       l.lg.Fatalf(fmt, args)
+       l.lg.Fatalf(fmt, args...)
 }
 
 func encoderConfig() zapcore.EncoderConfig {

Reply via email to