fix: Prevents duplicate logs from SQLAlchemy engine (#18024)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
2134a76517
commit
be6a88cb77
1 changed files with 2 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ def init_app(app: DifyApp):
|
|||
handlers=log_handlers,
|
||||
force=True,
|
||||
)
|
||||
# Disable propagation for noisy loggers to avoid duplicate logs
|
||||
logging.getLogger("sqlalchemy.engine").propagate = False
|
||||
log_tz = dify_config.LOG_TZ
|
||||
if log_tz:
|
||||
from datetime import datetime
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue