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

如何调整logparser的间隔呢 #24

Closed
czqqqaq opened this issue Jul 2, 2024 · 1 comment
Closed

如何调整logparser的间隔呢 #24

czqqqaq opened this issue Jul 2, 2024 · 1 comment

Comments

@czqqqaq
Copy link

czqqqaq commented Jul 2, 2024

在scrapydweb上每10s都会有如下的日志
[2024-07-02 14:32:11,951] WARNING in logparser.logparser: Saved to http://127.0.0.1:6800/logs/stats.json
[2024-07-02 14:32:11,951] WARNING in logparser.logparser: Sleep 10 seconds
希望调整间隔时间或者设置不显示log

@my8100
Copy link
Owner

my8100 commented Jul 3, 2024

self.logger.setLevel(logging.INFO)

Replace logging.INFO with logging.WARNING

PARSE_ROUND_INTERVAL = 10

Update the value of PARSE_ROUND_INTERVAL

@my8100 my8100 closed this as completed Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants