Skip to content

Commit

Permalink
demote some error logs to warnings (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping authored Nov 3, 2023
2 parents 5876947 + 036641e commit 7be9693
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bgs/bgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ func (bgs *BGS) EventsHandler(c echo.Context) error {
for {
_, _, err := conn.ReadMessage()
if err != nil {
log.Errorf("failed to read message from client: %s", err)
log.Warnf("failed to read message from client: %s", err)
cancel()
return
}
Expand Down Expand Up @@ -647,8 +647,10 @@ func (bgs *BGS) EventsHandler(c echo.Context) error {
}

if err := wc.Close(); err != nil {
return fmt.Errorf("failed to flush-close our event write: %w", err)
log.Warnf("failed to flush-close our event write: %s", err)
return nil
}

lastWriteLk.Lock()
lastWrite = time.Now()
lastWriteLk.Unlock()
Expand Down

0 comments on commit 7be9693

Please sign in to comment.