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
This commit is contained in:
mcinj 2022-04-24 12:11:19 -04:00
parent c144fb6d96
commit 4b8a9fe7b7
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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