Skip to content

Commit

Permalink
fix: log_level not found in config
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelin committed Jan 23, 2021
1 parent b9ff9fa commit ddfedea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/peerjs/ext/http_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ def _config_logger():
fmt = logging.Formatter(fmt=format_cfg,
datefmt=datefmt_cfg, style='%')
ch = logging.StreamHandler(sys.stdout)
logLevel = config["log_level"]
if config:
logLevel = config.get("log_level", None)
if not logLevel:
logLevel = DEFAULT_LOG_LEVEL
ch.setLevel(logLevel)
Expand Down

0 comments on commit ddfedea

Please sign in to comment.