Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add client id to error message #1130

Closed
wants to merge 1 commit into from
Closed

Add client id to error message #1130

wants to merge 1 commit into from

Conversation

leftwo
Copy link
Contributor

@leftwo leftwo commented Feb 1, 2024

I saw a panic again on latest.
It would help if the error message confirmed what client the error came from.

@leftwo leftwo requested a review from mkeeter February 1, 2024 19:12
@@ -3151,7 +3151,7 @@ impl Downstairs {
let Some(job) = self.ds_active.get_mut(&ds_id) else {
error!(
self.clients[client_id].log,
"IO completion error: missing {ds_id} "
"[{client_id}] IO completion error: missing {ds_id} "
Copy link
Contributor

@mkeeter mkeeter Feb 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should already be in the logs: we're writing to self.clients[client_id].log, which has a client => id tag (and we deliberately went through and removed [{client_id}] because it was duplicating this info)

@leftwo
Copy link
Contributor Author

leftwo commented Mar 13, 2024

Yeah, I can live without this

@leftwo leftwo closed this Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants