1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-06-15 00:05:15 +02:00

Chore: Standardize error logging & formatting

This commit is contained in:
Ralph Slooten
2024-01-01 15:25:38 +13:00
parent 4568b95bd6
commit 83e291208a
7 changed files with 13 additions and 18 deletions

View File

@ -63,7 +63,7 @@ func (c *Client) readPump() {
_, _, err := c.conn.NextReader()
if err != nil {
if websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway, websocket.CloseAbnormalClosure) {
logger.Log().Errorf("[websocket] error: %v", err)
logger.Log().Errorf("[websocket] error: %v", err.Error())
}
break
}