日志bug更新

pull/93/head
李强 2023-04-06 22:27:19 +08:00
parent 15cc1a2191
commit 454c2665a6
1 changed files with 1 additions and 4 deletions

View File

@ -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}")