Skip to content

Commit

Permalink
fixing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
advornic committed Jan 28, 2015
1 parent d94a8fb commit 2c446cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ztpserver/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ def python_supported():
logging_started = False
def start_logging(debug):
""" reads the runtime config and starts logging if enabled """
global logging_started #pylint: disable=W0603
if logging_started:
return

if config.runtime.default.logging:
if config.runtime.default.console_logging:
enable_handler_console('DEBUG' if debug else 'INFO')

global logging_started
logging_started = True

def load_config(conf=None):
Expand Down

0 comments on commit 2c446cd

Please sign in to comment.