-
如题,我想把消息的详细信息,比如发送人的昵称/群昵称等等消息一起写到日志(默认只有发送人QQ号和群号),应该如何修改代码?请求大佬们指点一下
以及相关联的nonebot\compat.py这个模块下面的model_dump这个方法:
看到这里就完全不知道应该如何修改了,model_dump方法这里好像有个递归,但是看不懂它的作用 |
Beta Was this translation helpful? Give feedback.
Answered by
yanyongyu
Dec 6, 2024
Replies: 1 comment 3 replies
-
默认不就会输出日志信息?你具体是要什么信息? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你可以在event preprocessor里使用nb的logger自己打印信息,目前日志打印的就是event description