更改一下日志
This commit is contained in:
2
dowmd.py
2
dowmd.py
@@ -32,11 +32,11 @@ class dow_markdown(Plugin):
|
|||||||
try:
|
try:
|
||||||
send_msg = e_context["context"]
|
send_msg = e_context["context"]
|
||||||
text = send_msg["content"]
|
text = send_msg["content"]
|
||||||
logger.info(f"[dow_markdown] on_handle_context sendMsg={text}")
|
|
||||||
if send_msg["type"] == ReplyType.TEXT:
|
if send_msg["type"] == ReplyType.TEXT:
|
||||||
if any(word in send_msg["content"] for word in ["画"]):
|
if any(word in send_msg["content"] for word in ["画"]):
|
||||||
receiver = send_msg.get("receiver")
|
receiver = send_msg.get("receiver")
|
||||||
itchat.send("我正在绘画中,可能需要多等待一会,请稍后...",toUserName=receiver)
|
itchat.send("我正在绘画中,可能需要多等待一会,请稍后...",toUserName=receiver)
|
||||||
|
logger.info("[WX] sendMsg={}, receiver={}".format(text, receiver))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warn(f"[dow_markdown] on_handle_context failed, content={text}, error={e}")
|
logger.warn(f"[dow_markdown] on_handle_context failed, content={text}, error={e}")
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user