fix(web): log transport/decode detail suppressed from the user #480
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/BUNYIP-477-log-suppressed-detail"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Follow-up to #478 (merged). That PR made bunyip-web's
user_message()show the browser a generic line for transport (status 0) and 5xx errors. This adds the other half of the invariant: the four sites that produce a status-0ApiErrornow log the real detail for operators before returning the generic error.Api::send,Api::get_stream,Api::post_formtransport failures:tracing::warn!(error, url, "bunyip-api request failed (transport)").parse()decode failure (a 2xx body that did not match the expected shape):tracing::warn!(error, "failed to decode bunyip-api response body").Why (BUNYIP-477)
Per direction: the simple/generic message is for the end user; the full detail must still reach admins. In the transport case bunyip-api is unreachable, so bunyip-web is the only component that observes the failure at all. Without this, the detail was hidden from the user (correct) and logged nowhere (a gap).
just check-containergreen (fmt + clippy + full workspace, 183 web tests including theserver_and_transport_errors_never_echo_internalsregression lock).#BUNYIP-477