Production logs are silent: default filter hides all warn! diagnostics #7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Context
While diagnosing a production 502 on high-resolution tiles,
docker logs caniculewas completely empty — no startup line, notracing::warn!— even though the proxy was actively failing every authenticated tile request withcould not refresh Strava cookies/Strava tile request failed.Cause
proxy/src/main.rscallstracing_subscriber::fmt::init(). WithRUST_LOGunset (the normal deployment case), the defaultEnvFiltershows onlyERROR-level events, so everywarn!the tile path emits is silently dropped. The logs are effectively always empty in production.Proposal
Default the filter to
infowhenRUST_LOGis absent, e.g. inmain():(
RUST_LOGstill overrides for quieter/verbose deployments.) Optionally documentRUST_LOGin the README configuration table.Acceptance
RUST_LOGset, starting the binary logs thelisteningline.WARNline visible indocker logs.RUST_LOG=error, behaviour stays quiet (override respected).