mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 13:55:58 +08:00
fix: Prevents duplicate logs from SQLAlchemy engine (#18024)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
2134a76517
commit
be6a88cb77
@ -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…
x
Reference in New Issue
Block a user