mirror of
https://github.com/harry0703/MoneyPrinterTurbo.git
synced 2026-03-09 16:27:22 +08:00
Remove logging to file
This commit is contained in:
parent
34694a169c
commit
28cc399e32
@ -8,7 +8,7 @@ from app.utils import utils
|
||||
|
||||
|
||||
def __init_logger():
|
||||
_log_file = utils.storage_dir("logs/server.log")
|
||||
# _log_file = utils.storage_dir("logs/server.log")
|
||||
_lvl = config.log_level
|
||||
root_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
|
||||
|
||||
@ -36,16 +36,16 @@ def __init_logger():
|
||||
colorize=True,
|
||||
)
|
||||
|
||||
logger.add(
|
||||
_log_file,
|
||||
level=_lvl,
|
||||
format=format_record,
|
||||
rotation="00:00",
|
||||
retention="3 days",
|
||||
backtrace=True,
|
||||
diagnose=True,
|
||||
enqueue=True,
|
||||
)
|
||||
# logger.add(
|
||||
# _log_file,
|
||||
# level=_lvl,
|
||||
# format=format_record,
|
||||
# rotation="00:00",
|
||||
# retention="3 days",
|
||||
# backtrace=True,
|
||||
# diagnose=True,
|
||||
# enqueue=True,
|
||||
# )
|
||||
|
||||
|
||||
__init_logger()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user