防止在ipython shell中显示调试日志信息
发布时间:2020-12-20 11:03:09 所属栏目:Python 来源:网络整理
导读:我在virtualenv中使用scrapy shell. I Python安装在virtualenv中.当我开始使用scrapy shell时 scrapy shell 'https://example.com' 并按Tab键获取自动填充建议,它显示了大量的调试信息.我怎么能禁用它? In [1]: from scra2018-03-23 10:05:45 [parso.python
我在virtualenv中使用scrapy
shell. I
Python安装在virtualenv中.当我开始使用scrapy shell时
scrapy shell 'https://example.com' 并按Tab键获取自动填充建议,它显示了大量的调试信息.我怎么能禁用它? In [1]: from scra2018-03-23 10:05:45 [parso.python.diff] DEBUG: diff parser start 2018-03-23 10:05:45 [parso.python.diff] DEBUG: diff parser calculated 2018-03-23 10:05:45 [parso.python.diff] DEBUG: diff: line_lengths old: 1,new: 1 2018-03-23 10:05:45 [parso.python.diff] DEBUG: diff replace old[1:1] new[1:1] 2018-03-23 10:05:45 [parso.python.diff] DEBUG: parse_part from 1 to 1 (to 0 in part parser) 2018-03-23 10:05:45 [parso.python.diff] DEBUG: diff parser end 解决方法
https://github.com/ipython/ipython/issues/10946看起来像是在这里报告错误.
如果您需要在ipython中进行调试日志记录,请尝试 logging.getLogger( ‘parso.cache’).禁用=真 并等待parso更新 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |