Skip to content
New issue

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

关掉一些log的默认打印 #413

Closed
416377966 opened this issue Nov 11, 2020 · 5 comments
Closed

关掉一些log的默认打印 #413

416377966 opened this issue Nov 11, 2020 · 5 comments
Assignees
Labels

Comments

@416377966
Copy link

默认打印的日志太多了,配置去掉一些

@Zack921
Copy link
Collaborator

Zack921 commented May 25, 2021

晚点我想想怎么优化~

@Zack921
Copy link
Collaborator

Zack921 commented Jun 1, 2021

目前看下来,是开放平台插件默认打印的日志太频繁了,暂定给它新加个配置项,配置后去掉默认打印
image

@Zack921
Copy link
Collaborator

Zack921 commented Jun 1, 2021

看了一下 日志虽然是有开放平台插件触发的,但是是因为tsw hack了请求才打印了,如果贸然关掉,可能不方便业务方排除错误。

@Zack921
Copy link
Collaborator

Zack921 commented Jun 1, 2021

经讨论,提供个配置项,配置后正常情况下不打印log,异常情况下打印出报错的上下文

@Zack921
Copy link
Collaborator

Zack921 commented Jun 2, 2021

默认打印的日志太多了,配置去掉一些

已发布,将tsw版本升级到2.4.0以上,同时在tswconfig.js上加上一个 cleanLog:true 的配置就可以关掉默认打印
image

@Zack921 Zack921 closed this as completed Jun 2, 2021
@Zack921 Zack921 self-assigned this Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants