chore: suppress server closed error
This commit is contained in:
parent
f70b843b1f
commit
43075869fb
1 changed files with 7 additions and 0 deletions
|
|
@ -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...)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue