Skip to content

Commit

Permalink
refactor(service): do not log message as an error what it is only closed
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcorado committed Dec 10, 2020
1 parent eb8d352 commit fb0f0d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service/handler.go
Expand Up @@ -183,7 +183,10 @@ func (h *HandlerService) Handle(conn acceptor.PlayerConn) {
msg, err := conn.GetNextMessage()

if err != nil {
logger.Log.Errorf("Error reading next available message: %s", err.Error())
if err != constants.ErrConnectionClosed {
logger.Log.Errorf("Error reading next available message: %s", err.Error())
}

return
}

Expand Down

0 comments on commit fb0f0d0

Please sign in to comment.