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
keep saying 2018-03-29 03:55:35 [parso.python.diff] DEBUG: diff parser start
when I'm typing
#241
Comments
the newest ipython 6.2.1 has the same issue. and it's reported old ipython has no problem. |
ptpython 0.41-0.36, all have this issue. |
Seems like it's an issue with
You can probably add this somewhere in ptpython config to execute on startup. On the side note: I think ptptyhon should increase loglevel throughout the board and have some sort of flag for that:
would be cool to have something like this that would block any logging that is not an error. EDIT: digging further this seems to be cause by scrapy shell overriding any default log handler. Making any unset loggers to swear at debug level. |
I don't think using the DEBUG log level is wrong. It's pretty much the lowest you can use. If anything prints all log levels, that's just wrong in that library IMO. The debug level just in general contains a lot of non-sense information. |
I don't think debug should be default in any case ever. The lowest logging level in Python is 0 which is NOTSET level. I'm not exactly sure how NOTSET works but it's generally not good idea to leave logging without a handler and unset level - then all kinds of issues pop up in other tools that control or wrap around loggers. My point being that parso needs to set it's logging to INFO explicitly for it to play nicely with |
@Granitosaurus I'm happy to be convinced otherwise, but I've checked three big libraries: Show me other libraries that do this and I'm happy to reconsider. |
I heard 'DEBUG' log level should only be used in production environment. however, this issue make ptpython unable to use anyways. so.. |
FWIW: I could not reproduce it using ptpython master and |
there was no issue when I was using python3.5 + ipython + ptpython |
Clear steps for reproducing this would be good, since I could not. Also copy'n'paste the terminal output then maybe for clarity. |
Is there any update on the issue? I have to uninstall my anaconda and install again to clear this thing |
@blueyed can't you reproduce it by run |
@NewUserHa |
ok. I thought you were a contributor to this repo. the issue still is there, and I haven't found code which changes logging level of parso from scrapy. |
@NewUserHa The issue is probably that the scrapy shell configures logging output for DEBUG on the root logger. |
but I didn't find any sign of it in code of scrapy. |
It's definitely not parso and also not jedi. Might be something about your environment as well or another dependency of ptpython/scrapy or an import that you make. It's in there somewhere, keep looking ;-) |
What about putting a |
By default, the Scrapy logger uses So for Scrapy it’s easy to workaround (you change the level to However, maybe this is something that should be handled by the shell. I mean, maybe the running shell should not make assumptions about the current logging level, and instead capture and discard all logging recorded during the internal code execution of the shell itself (e.g. during autocompletion). |
It might be a good idea to just disable the parso logger in Scrapy/ptpython altogether. I don't really think that it is needed in any case. When people are enabling logging, they usually want to see the logs about the stuff they import and not the stuff that scrapy/ptpython imports. |
|
It bothers me for a long time, not found an ideal solution, after I uninstall parso module, all is well! |
dimag kharb ho gayaa... please give any solution after installing ptipython , when i open scrapy shell got same error |
It'd be great to fix the root issue, but for each session I found the following diabled the log spam: |
python3.65rc1
I just did
pip install ptpython
then
scrapy shell ...
it says when I'm typing
re
[sponse]there's completion popup, but it's keeping saying these DEBUG. so it's unuseable.
it's fine I use ptpython in my last installing with 3.5 which I'm upgraded from to 3.65rc1
The text was updated successfully, but these errors were encountered: