From 454c2665a699bbc6910c4bd4c4a5d23916caee3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BC=BA?= <1206709430@qq.com> Date: Thu, 6 Apr 2023 22:27:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97bug=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/dvadmin/utils/log.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/dvadmin/utils/log.py b/backend/dvadmin/utils/log.py index 3e12d97..73618c2 100644 --- a/backend/dvadmin/utils/log.py +++ b/backend/dvadmin/utils/log.py @@ -128,7 +128,4 @@ class InterceptTimedRotatingFileHandler(RotatingFileHandler): if is_tenants_mode(): bind["schema_name"] = connection.tenant.schema_name bind["domain_url"] = getattr(connection.tenant, 'domain_url', None) - self.logger_ \ - .opt(depth=depth, exception=record.exc_info, colors=True, lazy=True) \ - .bind(**bind) \ - .log(level, msg) + self.logger_.opt(depth=depth, exception=record.exc_info, colors=True, lazy=True).bind(**bind).log(level, f"{msg}")