mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 16:39:26 +08:00
make logging not use f-str, change others to f-str (#22882)
This commit is contained in:
@@ -90,7 +90,7 @@ def mail_clean_document_notify_task():
|
||||
db.session.commit()
|
||||
end_at = time.perf_counter()
|
||||
logging.info(
|
||||
click.style("Send document clean notify mail succeeded: latency: {}".format(end_at - start_at), fg="green")
|
||||
click.style(f"Send document clean notify mail succeeded: latency: {end_at - start_at}", fg="green")
|
||||
)
|
||||
except Exception:
|
||||
logging.exception("Send document clean notify mail failed")
|
||||
|
||||
Reference in New Issue
Block a user