From 81717de9581dfdcfd7604f3518547d2c4c911c06 Mon Sep 17 00:00:00 2001 From: nineven Date: Mon, 15 Feb 2021 19:26:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=BA=A7=E5=88=AB=E4=BF=AE=E6=94=B9=E4=B8=BAerror?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/api/utils/crontab/run.py | 3 +++ 1 file changed, 3 insertions(+) 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: