Skip to content

Commit

Permalink
Use errbot log level with webserver for consistent logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
nzlosh committed Feb 9, 2022
1 parent 465f8e3 commit fdc453e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fixes:
- backends: deprecate built-in Slack and SlackRTM (#1526)
- chore: remove python 3.6 checks and test environment (#1540)
- chore: add/update issue templates (#1554)
- core/webserver: use errbot loglevel for consistent logging. (#1555)

v6.1.8 (2021-06-21)
-------------------
Expand Down
3 changes: 3 additions & 0 deletions errbot/core_plugins/webserver.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import sys
import logging
from json import loads
from random import randrange
from threading import Thread
Expand Down Expand Up @@ -127,6 +128,8 @@ def run_server(self):
flask_app,
ssl_context=ssl_context,
)
wsgi_log = logging.getLogger("werkzeug")
wsgi_log.setLevel(self.bot_config.BOT_LOG_LEVEL)
self.server.serve_forever()
self.log.debug("Webserver stopped")
except KeyboardInterrupt:
Expand Down

0 comments on commit fdc453e

Please sign in to comment.