chore(snownet): print error code for unhandled message (#7367)

All our logic for handling errors is based on the error code. Even
though there should be a 1:1 mapping between error code and reason
phrase, I am seeing odd reports in Sentry for a case that we should be
handling but aren't.
This commit is contained in:
Thomas Eizinger
2024-11-18 18:15:04 +00:00
committed by GitHub
parent fd04812cde
commit d9fb9e53c8

View File

@@ -443,7 +443,7 @@ impl Allocation {
_ => {}
}
tracing::warn!(error = %error.reason_phrase(), "TURN request failed");
tracing::warn!(error = %error.reason_phrase(), code = %error.code(), "TURN request failed");
return true;
}