Don't log an error for suspended servers like this
This commit is contained in:
parent
4ce9c83fad
commit
bdf546c47a
|
@ -287,12 +287,14 @@ func (wsh *WebsocketHandler) SendErrorJson(err error) error {
|
|||
wsm := WebsocketMessage{Event: ErrorEvent}
|
||||
wsm.Args = []string{m}
|
||||
|
||||
if !server.IsSuspendedError(err) {
|
||||
zap.S().Errorw(
|
||||
"an error was encountered in the websocket process",
|
||||
zap.String("server", wsh.Server.Uuid),
|
||||
zap.String("error_identifier", u.String()),
|
||||
zap.Error(err),
|
||||
)
|
||||
}
|
||||
|
||||
return wsh.Connection.WriteJSON(wsm)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user