Replies: 1 comment
-
The engineio_logger = logging.getLogger('engineio')
socketio = SocketIO(logger=False, engineio_logger=engineio_logger) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
When I set up default logging using a logging basicConfig, and enable engineio logging, I get duplicate logs.
To Reproduce
Here is a minimal reproduction.
server.py:
and frontend/index.html:
Expected behavior
I expect to see logs for ping/pong requests appear once, in the format laid out by the basicConfig:
Instead, I get them twice. Once with the appropriate logging configuration, once without.
This isn't an issue when it's just ping/pong logs, but with very large requests this can rapidly pollute the logging space. Disabling the basic config 'fixes' the issue, but obviously I would like the basic configuration to apply to my logs.
Any guess as to whats going on?
Beta Was this translation helpful? Give feedback.
All reactions