log level switch

main
yzlocal 2 years ago
parent 5a2439c7f6
commit e0c35587af

@ -11,9 +11,9 @@ running_which_env = 'prd'
ROOT_DIR = abspath(join(dirname(abspath(__file__)), "..")) ROOT_DIR = abspath(join(dirname(abspath(__file__)), ".."))
logger.remove() 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", 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): def run_add_1day_code_init_minKline(date, code_list):

Loading…
Cancel
Save