Skip to content

Commit

Permalink
Add user agent to ClientError log message
Browse files Browse the repository at this point in the history
This would help to keep track of which errors are relevant to the latest 
client build and which can be ignored because they have already been 
fixed or are coming from an alternate client implementation.
  • Loading branch information
Askaholic committed Jan 8, 2024
1 parent 8f0462e commit 7c2f002
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/lobbyconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ async def on_message_received(self, message):
})
await self.abort(e.message())
except ClientError as e:
self._logger.warning("Client error: %s", e.message)
self._logger.warning(
"ClientError[%s]: %s",
self.user_agent,
e.message,
)
await self.send({
"command": "notice",
"style": "error",
Expand Down

0 comments on commit 7c2f002

Please sign in to comment.