mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Use log dir from config
This commit is contained in:
parent
705443b7df
commit
594f971b4c
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ def setup_log(level="DEBUG"):
|
|||
for level, filename in zip(
|
||||
(config.LOG_LEVEL, logging.ERROR), ("all.log", "error.log"),
|
||||
):
|
||||
handler = logging.FileHandler(filename)
|
||||
handler = logging.FileHandler(os.path.join(config.LOG_PATH, filename))
|
||||
handler.setLevel(level)
|
||||
handlers.append(handler)
|
||||
|
||||
|
|
Loading…
Reference in a new issue