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:
parent
c144fb6d96
commit
4b8a9fe7b7
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue