From e0c35587af8521cc23fbe85f63305d9b700967b3 Mon Sep 17 00:00:00 2001 From: yzlocal Date: Fri, 11 Nov 2022 15:59:46 +0800 Subject: [PATCH] log level switch --- src/data_loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data_loader.py b/src/data_loader.py index 82aa56f..b521cb1 100644 --- a/src/data_loader.py +++ b/src/data_loader.py @@ -11,9 +11,9 @@ running_which_env = 'prd' ROOT_DIR = abspath(join(dirname(abspath(__file__)), "..")) logger.remove() -logger.add(sys.stderr, level="INFO") +logger.add(sys.stderr, level="WARNING") logger.add(ROOT_DIR+"/logs/{time:YYYYMMDD-HHmmss}"+f"_{running_which_env}.log", - rotation="10 MB", compression="zip", level="DEBUG") + rotation="10 MB", compression="zip", level="INFO") def run_add_1day_code_init_minKline(date, code_list):