mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 08:26:53 +08:00
fix log level
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ file_handler = RotatingFileHandler(filename=settings.LOG_PATH / 'moviepilot.log'
|
|||||||
file_handler.setLevel(logging.INFO)
|
file_handler.setLevel(logging.INFO)
|
||||||
|
|
||||||
# 定义日志输出格式
|
# 定义日志输出格式
|
||||||
formatter = logging.Formatter("%(asctime)s - %(filename)s -【%(levelname)s】%(message)s")
|
formatter = logging.Formatter("%(asctime)s - %(filename)s - [%(levelname)s] %(message)s")
|
||||||
console_handler.setFormatter(formatter)
|
console_handler.setFormatter(formatter)
|
||||||
file_handler.setFormatter(formatter)
|
file_handler.setFormatter(formatter)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user