Skip to content
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

[Feature Request] Control individual log levels #641

Closed
frankcorneliusmartin opened this issue May 8, 2023 · 2 comments · Fixed by #642
Closed

[Feature Request] Control individual log levels #641

frankcorneliusmartin opened this issue May 8, 2023 · 2 comments · Fixed by #642
Assignees

Comments

@frankcorneliusmartin
Copy link
Contributor

frankcorneliusmartin commented May 8, 2023

Problem description
We can only set the global log level for all loggers and some loggers are manually muted on startup. A much better solution would be to be able to set individual log levels.

Desired solution
Add a configuration block to adjust the individual log-levels for the node:

# additional debug settings
debug:
  socketio: true
  proxy_server: true

logging:
   ...
  loggers:
    - name: urllib3
      level: warning
    - name: requests
      level: warning
    - name: engineio.client
      level: debug
    - name: docker.utils.config
      level: critical
    - name: docker.auth
      level: info
    - ...

And for the server:

# additional debug settings
debug:
  socketio: true
  flask: true

logging:
  loggers:
    - name: urllib3
       level: warning
    - name: socketIO-client
       level: warning
    - name: engineio.server
      level: warning
    - name: socketio.server
      level: warning
    - name: sqlalchemy.engine
      level: warning
    - name: requests_oauthlib.oauth2_session
      level: warning
    - ...
@bartvanb
Copy link
Member

I was just testing this and in the server, I don't seem to see any debug messages of Flask or socketio, so I'm not sure whether that is working or not

@frankcorneliusmartin
Copy link
Contributor Author

Lets add some additional documentation to clarify that you need to set the log level to debug also. Else you will suppress the debug messages from flask, socketio and/or the proxy server (=flask)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants