mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-06-03 14:24:03 +00:00
refactor(web_viewer): enhance logging configuration for gevent components
Updated logging settings to suppress access log lines from gevent and geventwebsocket, improving log clarity and reducing noise. This change ensures that only relevant log messages are displayed, enhancing the overall logging experience for the web viewer.
This commit is contained in:
+2
-1
@@ -256,8 +256,9 @@ class BotDataViewer:
|
||||
# Prevent propagation to root logger to avoid duplicate messages
|
||||
self.logger.propagate = False
|
||||
|
||||
# Suppress gevent WSGI access logs (one line per request at INFO level)
|
||||
# Suppress gevent/geventwebsocket per-request access log lines
|
||||
logging.getLogger('gevent.pywsgi').setLevel(logging.WARNING)
|
||||
logging.getLogger('geventwebsocket.handler').setLevel(logging.WARNING)
|
||||
|
||||
self.logger.info("Web viewer logging initialized with rotation (5MB max, 3 backups)")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user