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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue