From e4c8f2a31461e68eccf30a0b00d493cc78c7bbb5 Mon Sep 17 00:00:00 2001 From: sbilly Date: Mon, 22 Feb 2016 08:43:51 +0800 Subject: [PATCH] fix logging bug --- weixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin.py b/weixin.py index f784d63..cbc3ece 100755 --- a/weixin.py +++ b/weixin.py @@ -441,7 +441,7 @@ class WebWeixin(object): else: print '[*] 该消息类型为: %d,可能是表情,图片或链接' % msg['MsgType'] print msg - logging.debug('[*] 该消息类型为: %d,可能是表情,图片或链接: ' % (msg['MsgType'], json.dumps(msg))) + logging.debug('[*] 该消息类型为: %d,可能是表情,图片或链接: %s' % (msg['MsgType'], json.dumps(msg))) def listenMsgMode(self): print '[*] 进入消息监听模式 ... 成功'