Skip to content

Commit

Permalink
split config.update from dictConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
kingkuong committed Nov 13, 2018
1 parent 442bcb6 commit a0b87d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gunicorn/glogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ def setup(self, cfg):
if os.path.exists(cfg.logconfig_json):
try:
config_json = json.load(open(cfg.logconfig_json))
dictConfig(config.update(config_json))
config.update(config_json)
dictConfig(config)
except(
json.JSONDecodeError,
AttributeError,
Expand Down

0 comments on commit a0b87d8

Please sign in to comment.