Skip to content

Commit

Permalink
Set logging level for h.streamer to INFO in production
Browse files Browse the repository at this point in the history
This enables logging of debug mode messages when connecting to the WebSocket
with `/ws?debug=1`.
  • Loading branch information
robertknight committed Sep 21, 2023
1 parent c0ee8bb commit 08c3af2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion conf/websocket-monolithic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ workers: 2
worker_connections: 8192

[loggers]
keys = root, gunicorn.error
keys = root, gunicorn.error, h.streamer

[handlers]
keys = console
Expand All @@ -28,6 +28,11 @@ level = INFO
handlers =
qualname = gunicorn.error

[logger_h.streamer]
level = INFO
handlers =
qualname = h.streamer

[handler_console]
level = NOTSET
class = StreamHandler
Expand Down
7 changes: 6 additions & 1 deletion conf/websocket-separate.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ workers: 2
worker_connections: 8192

[loggers]
keys = root, gunicorn.error
keys = root, gunicorn.error, h.streamer

[handlers]
keys = console
Expand All @@ -29,6 +29,11 @@ level = INFO
handlers =
qualname = gunicorn.error

[logger_h.streamer]
level = INFO
handlers =
qualname = h.streamer

[handler_console]
level = NOTSET
class = StreamHandler
Expand Down

0 comments on commit 08c3af2

Please sign in to comment.