Skip to content

Commit

Permalink
Merge pull request #152 from iheartradio/fix-logger-bug
Browse files Browse the repository at this point in the history
Use 'level' Getter That All Loggers Can Use
  • Loading branch information
eagbanyo authored Mar 20, 2018
2 parents 9dcd619 + ae52f20 commit 814d44d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion henson/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ def run_forever(self, num_workers=1, loop=None, debug=False):
# log level was set to something lower than DEBUG, don't
# change it.
loop.set_debug(True)
self.logger.setLevel(min(self.logger.level, logging.DEBUG))
self.logger.setLevel(
min(self.logger.getEffectiveLevel(), logging.DEBUG)
)

self.logger.debug('application.started')

Expand Down

0 comments on commit 814d44d

Please sign in to comment.