Operator errors point to the server logs but give no reference to find the line by #239
Open
opened 2026-10-18 19:02:07 +00:00 by cgalo5758
·
1 comment
Labels
Clear labels
accessibility
area/billing
area/catalog
area/discourse
area/domains
area/entitlements
area/fedwiki
area/identity
area/integrations
area/licensing
area/member-ui
area/meta
area/operator-ui
area/ops
area/testing
duplicate
good-first-issue
invalid
privacy
security
upstream
wontfix
A barrier for people using assistive technology or a keyboard alone.
The Stripe mirror, checkout, subscriptions, invoices, fulfillment.
Products, prices, plan ladders, purchasability.
The Discourse integration.
The domains registry, claims, placements, the certificate ask.
Entitlement sets, rules, grants, pools, provisioning.
The Federated Wiki integration and farm sync.
Sign-in, sessions, persons, organizations, workspaces, roles.
The provider registry, outbox and webhooks in general.
Licenses, the contributor agreement, SPDX headers.
Member pages.
The repository itself, its contributing guide, CI, the tracker and the workflow.
Operator pages, forms, lists, the design system.
Deployment, configuration, migrations, workflows, instance settings.
The test stack, screens, lint, walkthroughs.
Closed because another issue already covers it.
Small, self-contained, and explained enough to be a first contribution.
Closed because it is not a ticket for this repository.
Touches what a person's data reveals.
Touches authentication, authorization, secrets or data exposure.
Waits on another repository or project before it can move.
Closed because it will not be done, with the reason in the last comment.
kind
bug
The software does something other than what it promises; closed when it again does what it promises.
kind
debt
Code, tests or tooling to clean up with nothing visible changing; closed when they are cleaner.
kind
design
A question to settle before work can be defined; closed when the decision is written down.
kind
docs
Documentation that is wrong or missing; closed when it says the right thing.
kind
enhancement
Something the software does not do yet; closed when it does.
priority
critical
Blocks the active milestone or harms members now.
priority
high
Next in line inside the active milestone.
priority
low
Inside the active milestone, when nothing else is left.
priority
medium
Inside the active milestone, after the high ones.
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: wiki-cafe/member-console#239
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What a person cannot do today
When an operator page fails, its error often ends with "Details are in the server logs." or "see server logs". There are 30 such sentences in 10 files. An operator who cannot read the server's logs has nothing to pass on to the person who can.
That person cannot find the line either, except by time and wording. The handlers log their errors through
h.Logger(192 calls underinternal/server/), and those lines do not carry the request id. Only the access-log line that the logging middleware writes carries it.What they should be able to do
Each such error shows a reference, and the error's log line carries the same reference. The operator hands the reference to whoever runs the server, and that person finds the line by searching for it:
The request id already exists. The
RequestIDmiddleware puts it on the request's context and in theX-Request-IDresponse header, and theLoggingmiddleware stores a logger carryingrequest_idin the context, whichlogging.FromContextreturns. The handlers do not use that logger.Two points to settle in the fix:
RequestIDaccepts anyX-Request-IDthe client sends, of any length. A reference shown on the page should be one the server generated or validated, so a client cannot choose what the page prints or point the search at other requests' lines.The readouts #187 adds for plan changes use this form from the start: the change's id under the list of organizations it could not move, and the request's id when Retry fails.
Why it matters
The sentence tells an operator that the cause is recorded somewhere they cannot see and gives them nothing to act on, and it gives whoever reads the logs no way to tell one failure from another in the same minute.
Where
internal/server/operator_*.go,internal/integrations/discourse/web/operator.go,internal/middleware/requestid.go,internal/middleware/logging.go,internal/logging/logging.goDone when
No operator-facing error says "Details are in the server logs" or "see server logs". Each one shows a reference instead, a test finds that reference in the error's log line, and no page prints a client-supplied value as the reference.
#187's sentences already carry a reference: the tier add, the tier delete, the tier removal and its preview, the reorder's preview and the default change, logged through the request's logger with the same id. So this issue's list keeps only the console's other sentences: 16 that still end "Details are in the server logs." or "see server logs", in 9 files. Two plan-act failures answer without a reference and without pointing to the logs: the tier removal's "Failed to remove the tier; nothing was changed." and the reorder's "Failed to reorder tiers.". They belong on this list too.