From 4b8a9fe7b77d4ed9748c50ac1f973dd7625a6b68 Mon Sep 17 00:00:00 2001 From: mcinj <98779161+mcinj@users.noreply.github.com> Date: Sun, 24 Apr 2022 12:11:19 -0400 Subject: [PATCH] Store the debug log file in the config folder. - Storing in the config folder allows easy access when running via docker. - Small log output change --- src/log.py | 2 +- src/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/log.py b/src/log.py index 92e9905..2427a8c 100644 --- a/src/log.py +++ b/src/log.py @@ -5,7 +5,7 @@ from logging.handlers import RotatingFileHandler log_format = "%(levelname)s %(asctime)s - %(message)s" logging.basicConfig( - handlers=[RotatingFileHandler('./debug.log', maxBytes=100000, backupCount=10)], + handlers=[RotatingFileHandler('../config/debug.log', maxBytes=100000, backupCount=10)], level=logging.DEBUG, format=log_format) diff --git a/src/main.py b/src/main.py index 19ac392..0272b70 100644 --- a/src/main.py +++ b/src/main.py @@ -185,7 +185,7 @@ class SteamGifts: logger.debug(txt) return False if game_entries > self.max_entries: - txt = f"Game {game_name} has {game_entries} entries is above your cutoff of {self.max_entries} entries." + txt = f"Game {game_name} has {game_entries} entries and is above your cutoff of {self.max_entries} entries." logger.debug(txt) return False