mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 17:18:40 +08:00
add backend logging
This commit is contained in:
parent
0c18d4e058
commit
aeb3fc6729
@ -1,4 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from werkzeug.wrappers import Request as WerkzeugRequest
|
from werkzeug.wrappers import Request as WerkzeugRequest
|
||||||
@ -235,6 +236,7 @@ def broadcast_leader_change(workflow_id, new_leader_sid):
|
|||||||
# Emit to each session whether they are the new leader
|
# Emit to each session whether they are the new leader
|
||||||
sio.emit("status", {"isLeader": is_leader}, room=sid_str)
|
sio.emit("status", {"isLeader": is_leader}, room=sid_str)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
logging.exception("Failed to emit leader status to session %s", sid)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user