Improve the error message when hub is almost full (#14021)

Improve the error message when hub is almost full
This commit is contained in:
Mario de Frutos Dieguez
2020-03-19 12:57:58 +01:00
committed by GitHub
parent 1c06d25d9d
commit 010dac2195

View File

@@ -101,7 +101,7 @@ func (a *App) HubStart() {
for _, hub := range a.Srv().GetHubs() {
if len(hub.broadcast) >= DEADLOCK_WARN {
mlog.Error(
"Hub processing might be deadlock with events in the buffer",
"Websocket hub queue is filled to 99% of its capacity",
mlog.Int("hub", hub.connectionIndex),
mlog.Int("goroutine", hub.goroutineId),
mlog.Int("events", len(hub.broadcast)),