Skip to content

Commit 2c30311

Browse files
committed
Log the error we return to the client
We don't have many errors reported over time[^1], so this shouldn't be overly expensive. Hopefully this will let us determine if these are real issues that should be addressed. [^1]: 115 over the last 24 hours, it appears.
1 parent 64fb615 commit 2c30311

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/src/server_axum.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,7 @@ impl IntoResponse for Error {
772772
.map(|(_, s, _)| s)
773773
.reduce(|l, r| l + ": " + &r)
774774
.unwrap_or_default();
775+
error!(error, "Returning an error to the client");
775776
let resp = Json(ErrorJson { error });
776777
let resp = (StatusCode::INTERNAL_SERVER_ERROR, resp);
777778
resp.into_response()

0 commit comments

Comments
 (0)