debug(project_events): log every publish call with uid set
Temporary instrumentation to debug why SSE board events aren't reaching the browser. Will revert once root cause is identified.
This commit is contained in:
@@ -250,6 +250,7 @@ func publishEvent(ctx context.Context, projectID int64, payload any) {
|
||||
Data: data,
|
||||
}
|
||||
uids := connectedUIDsWithProjectAccess(ctx, projectID)
|
||||
log.Info("project_events: publish project=%d event=%s uids=%v connected=%v", projectID, event.Name, uids, eventsource.GetManager().ConnectedUIDs())
|
||||
if len(uids) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user