Disable the logging of imported and third-party libraries#725
Disable the logging of imported and third-party libraries#725mahendrark merged 3 commits intodevfrom
Conversation
|
I managed to suppress all, but the messages from dash (about 11 lines). I could not find a solution for those yet, and my issue is still open on their repo without a comment. I will try their community forum next and see if someone responds. I will push the changes. Can you please test it in your PC and let me know if everything is good? Thanks! |
4573727 to
245b049
Compare
smartie2076
left a comment
There was a problem hiding this comment.
Much better! Thank you!
I have only those error message types left:
2020-12-17 15:07:20,026 - DEBUG - files - write 3939 bytes to 'D:\\PycharmProjects\\mvs_eland\\MVS_outputs\\energy_system_graph'
2020-12-17 15:07:20,026 - DEBUG - backend - run ['dot', '-Tpng', '-O', 'energy_system_graph']
...
2020-12-17 15:11:40,123 - DEBUG - connectionpool - Starting new HTTP connection (1): a.tile.komoot.de:80
...
2020-12-17 15:11:40,424 - DEBUG - PngImagePlugin - STREAM b'IHDR' 16 13
...
2020-12-17 15:12:27,290 - INFO - dash - Dash is running on http://127.0.0.1:8050/
2020-12-17 15:12:30,322 - DEBUG - client - client > GET /devtools/browser/81cf389f-f453-4bc8-a8a4-b7151c0f013a HTTP/1.1
...
Aha! I have a different set of messages, 11 lines only from dash. |
|
Hi @mahendrark! Just for completeness sake - this is the complete log file: |
|
Do you plan to check my log messages out? If not, which would be fine, change your first post to |
Of course! Thats why I asked you to try running from this branch and let me know :P I am still waiting for the answer from dash guys as to how to suppress the messages from that library. If they help out, I can make them disappear too and then I would like to look at the ones in your logs. |
Holy hell! I thought connectionpool and PngImagePlugin disappeared ... Do have the latest version of this branch @smartie2076 ? I added code to suppress the messages from those libraries latter. Can you please check and confirm? Danke! |
False alarm! So weird, I did So, everything is all right, there are 10 max (maybe less) plotly dash messages left :D |
|
As the dash community did not respond to my questions on both their git repo issues section or their community forum, and considering that the current log file is quite manageable in terms of the number of lines, I am merging and closing this PR for now. In the future, if I come across a fix for the dash logging, I will implement it. |
| "websockets.protocol", | ||
| "websockets.client", | ||
| "urllib3.connectionpool", | ||
| "PIL.PngImagePlugin", |
There was a problem hiding this comment.
"werkzeug" for dash (it is the one of flask, on which dash piggybacks) and "pyppeteer" for the browser emulator. It is wierd to me that the commands on line
does not work to suppress dash messages?
Fix #717
Changes proposed in this pull request:
The following steps were realized, as well (if applies):
black . --exclude docs/)EXECUTE_TESTS_ON=master pytest)Please mark above checkboxes as following:
❌ Check not applicable to this PR
For more information on how to contribute check the CONTRIBUTING.md.