diff --git a/fir_ser/api/utils/crontab/run.py b/fir_ser/api/utils/crontab/run.py index 7815d7d..78510ca 100644 --- a/fir_ser/api/utils/crontab/run.py +++ b/fir_ser/api/utils/crontab/run.py @@ -16,6 +16,9 @@ logger = logging.getLogger(__file__) import atexit import fcntl +logging.basicConfig() +logging.getLogger('apscheduler').setLevel(logging.ERROR) + # 主要是为了防止多进程出现的多个定时任务同时执行 f = open("scheduler.lock", "wb") try: