We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
此版块专为反馈 bug 及提交需求服务,不负责解答开发问题,请勿发表开发问题, 如果您需要这方面的帮助,请移步问答社区:https://weixin.senparc.com/QA
问答社区
我在生产环境中,发现"\App_Data\WeChat_OfficialAccount{日期}"中保存了大量事件日志,我们不希望保存太多公众号事件推送的日志(例如关注、用户发送文字),请问是怎样开关?
应用程序中,已把 Senparc.Weixin.Config.IsDebug = false;
并且在appsettings.json中,两个IsDebug都已经是false了。
Email:
(也可将问题地址及联系方式发送到 [email protected])
发布问题后,请保持对 issue 的关注,有时会有需要进一步沟通的信息,很长时间内没有得到答复的 issue 将被关闭。
The text was updated successfully, but these errors were encountered:
如果你用的是 MVC 或者可视化的 API 入口,可以去掉这个手动添加的日志代码:
https://github.com/JeffreySu/WeiXinMPSDK/blob/master/Samples/All/net8-mvc/Senparc.Weixin.Sample.Net8/Controllers/Weixin/MP/WeixinController.cs#L121
如果你用的是中间件,可以通过配置关闭(注意 Request 和 Response 有独立的开关):
https://github.com/JeffreySu/WeiXinMPSDK/blob/master/Samples/All/net8-mvc/Senparc.Weixin.Sample.Net8/Startup.cs#L417
Sorry, something went wrong.
感谢回复
No branches or pull requests
问题描述
我在生产环境中,发现"\App_Data\WeChat_OfficialAccount{日期}"中保存了大量事件日志,我们不希望保存太多公众号事件推送的日志(例如关注、用户发送文字),请问是怎样开关?
应用程序中,已把
Senparc.Weixin.Config.IsDebug = false;
并且在appsettings.json中,两个IsDebug都已经是false了。
重现问题步骤(如果可以)
微信官方文档 URL
微信官方文档快照(直接复制关键内容到下方)
发现问题的模块
- [ ] Senparc.Weixin.QY 版本:模块对应的 .net 版本
开发环境
缓存环境
系统环境
联系方式
Email:
(也可将问题地址及联系方式发送到 [email protected])
The text was updated successfully, but these errors were encountered: