Skip to content

Commit

Permalink
Merge pull request #19 from GitGerby/logging
Browse files Browse the repository at this point in the history
Fix logging level assignment
  • Loading branch information
GitGerby authored Mar 16, 2019
2 parents bec8891 + cb9a96f commit eeca5ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyFactorioUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def get_latest_version(experimental):

LOGGER = logging.getLogger('factorio_updater')
LOG_FILE = logging.FileHandler('/var/log/factorio_updater.log')
LOG_FILE.setLevel(logging.debug)
LOG_FILE.setLevel(logging.DEBUG)
LOG_CONSOLE = logging.StreamHandler()
LOG_CONSOLE.setLevel(logging.warning)
LOG_CONSOLE.setLevel(logging.WARNING)

LOGGER.addHandler(LOG_FILE)
LOGGER.addHandler(LOG_CONSOLE)
Expand Down

0 comments on commit eeca5ed

Please sign in to comment.