From 40a460870a20eeeba638455f1a959a4b20fdaf56 Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 31 Aug 2023 11:32:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=20db=5Fport=20?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/signal_handlers/db_port.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/terminal/signal_handlers/db_port.py b/apps/terminal/signal_handlers/db_port.py index 5ea1c8aab..3ba3d9225 100644 --- a/apps/terminal/signal_handlers/db_port.py +++ b/apps/terminal/signal_handlers/db_port.py @@ -16,7 +16,8 @@ def check_db_port_mapper(sender, **kwargs): try: db_port_manager.check() except Exception as e: - logger.error(e) + # 新部署会显示 assets_database 表不存在 + logger.warning('(Ignore) {}'.format(e)) @receiver(post_save, sender=Database)