Skip to content

Commit

Permalink
backend: Change COMPLETE message error to info
Browse files Browse the repository at this point in the history
COMPLETE messages are not critical for functionality since the client
will continue to receive updates even if the COMPLETE message fails.
Changed the log level to reduce noise in error logs while maintaining
visibility through info logs.

Signed-off-by: Kautilya Tripathi <[email protected]>
  • Loading branch information
knrt10 committed Jan 6, 2025
1 parent 71251ae commit 372deba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/cmd/multiplexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ func (m *Multiplexer) sendCompleteMessage(conn *Connection, clientConn *websocke
defer conn.writeMu.Unlock()

if err := clientConn.WriteJSON(completeMsg); err != nil {
logger.Log(logger.LevelError, nil, err, "writing complete message")
logger.Log(logger.LevelInfo, nil, err, "writing complete message")
return err
}

Expand Down

0 comments on commit 372deba

Please sign in to comment.