my8100 / logparser

A tool for parsing Scrapy log files periodically and incrementally, extending the HTTP JSON API of Scrapyd.
GNU General Public License v3.0
89 stars 22 forks source link

如何调整logparser的间隔呢 #24

Closed czqqqaq closed 3 months ago

czqqqaq commented 4 months ago

在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 commented 4 months ago

https://github.com/my8100/logparser/blob/ed7948b271884af68eb3bb13fa9ee51a4892552c/logparser/logparser.py#L78

Replace logging.INFO with logging.WARNING

https://github.com/my8100/logparser/blob/ed7948b271884af68eb3bb13fa9ee51a4892552c/logparser/settings.py#L28

Update the value of PARSE_ROUND_INTERVAL