Merge remote-tracking branch 'origin/dev' into dev

pull/93/head
猿小天 2023-04-08 14:47:18 +08:00
commit d1dc5c04c0
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}")