Skip to content

Commit

Permalink
Fix wrong Settings class members in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
algorys committed Mar 20, 2018
1 parent 4bd5f26 commit 71bb45f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions alignak_app/utils/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def create_logger(): # pragma: no cover
stdout_handler = root_logger.handlers[0]

# Define path and file for "file_handler"
if ALIGNAKAPP_LOG_DIR:
path = ALIGNAKAPP_LOG_DIR
elif settings.app_cfg_dir:
path = settings.user_cfg_dir
if 'ALIGNAKAPP_LOG_DIR' in os.environ:
path = os.environ['ALIGNAKAPP_LOG_DIR']
elif 'ALIGNAKAPP_USR_DIR' in os.environ:
path = os.environ['ALIGNAKAPP_USR_DIR']
else:
path = tempfile.gettempdir()

Expand Down

0 comments on commit 71bb45f

Please sign in to comment.