From a4514e9c52db33e008310c41076411791d22d457 Mon Sep 17 00:00:00 2001 From: Mrs4s <1844812067@qq.com> Date: Tue, 25 Aug 2020 00:10:36 +0800 Subject: [PATCH] fix log. --- client/global.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/global.go b/client/global.go index 71b810cf..51e0ba69 100644 --- a/client/global.go +++ b/client/global.go @@ -344,20 +344,20 @@ func genLongTemplate(resId, brief string, ts int64) *message.SendingMessage { func (c *QQClient) Info(msg string, args ...interface{}) { c.dispatchLogEvent(&LogEvent{ Type: "INFO", - Message: fmt.Sprintf(msg, args), + Message: fmt.Sprintf(msg, args...), }) } func (c *QQClient) Error(msg string, args ...interface{}) { c.dispatchLogEvent(&LogEvent{ Type: "ERROR", - Message: fmt.Sprintf(msg, args), + Message: fmt.Sprintf(msg, args...), }) } func (c *QQClient) Debug(msg string, args ...interface{}) { c.dispatchLogEvent(&LogEvent{ Type: "DEBUG", - Message: fmt.Sprintf(msg, args), + Message: fmt.Sprintf(msg, args...), }) }