Fixed logging level setting in pusher
This commit is contained in:
parent
3fe70dd184
commit
cb0a9f5c63
1 changed files with 4 additions and 1 deletions
|
@ -48,8 +48,11 @@ class Pusher(object):
|
|||
|
||||
# Initialize the configuration
|
||||
self.config_file = config_file
|
||||
log_conf = Config.get('logging')
|
||||
Config.init(config_file)
|
||||
logging.basicConfig(level=Config.get('logging'), stream=sys.stdout)
|
||||
logging.basicConfig(level=log_conf['level']
|
||||
if log_conf and 'level' in log_conf
|
||||
else logging.info, stream=sys.stdout)
|
||||
|
||||
self.on_response = on_response or self.default_on_response()
|
||||
self.backend = backend or Config.get_default_pusher_backend()
|
||||
|
|
Loading…
Reference in a new issue