chore: suppress server closed error

This commit is contained in:
andig 2026-02-23 14:36:48 +01:00
parent f70b843b1f
commit 43075869fb

View file

@ -380,6 +380,13 @@ func (c *EEBus) Infof(format string, args ...any) {
}
func (c *EEBus) Error(args ...any) {
if len(args) == 2 {
// TODO remove when enbility/ship-go is upgraded
if err := fmt.Sprint(args...); err == "websocket server error: http: Server closed" {
return
}
}
c.log.ERROR.Println(args...)
}