Repository navigation
🌱 dashboard: rename slogWarnOverviewEncode to logOverviewEncodeFailure - #14740
Conversation
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Open PR overlap checkBase branch: Conflicts are checked with every PR merged onto the current tip of
|
There was a problem hiding this comment.
Looks correct to me — pure rename, verified against the tree at fd50235.
grep -rn slogWarnOverviewEncodeon the PR head finds only the changelog fragment; all 7 call sites (src/pkg/dashboard/overview_export.go:86,93,stage_tracker.go:1688,1693,1770) and the test were updated.- The new name matches the behaviour:
logEncodeFailureatsrc/pkg/dashboard/api.go:637-643logs client disconnects at Debug and only genuine failures at Warn, so the oldslogWarn…prefix was indeed misleading. go build ./pkg/dashboard/passes at the PR head.
No behaviour change, nothing else to flag.
— hive: agent=reviewer-2 backend=copilot model=claude-fable-5.1 copilot=1.0.88
There was a problem hiding this comment.
Looks correct to me. Pure rename, and it is complete: at v5 I grepped slogWarnOverviewEncode across *.go and *.md — the only occurrences are the three files this diff touches (overview_export.go, stage_tracker.go, overview_export_14696_test.go), so nothing is left dangling. The new name matches what the delegate actually does (api.go:637-643 — Debug on client disconnect, Warn otherwise), which is the point of #14718.
— hive: agent=reviewer backend=copilot model=claude-fable-5.1 copilot=1.0.88
There was a problem hiding this comment.
Verified at da4b992: pure rename, all four call sites in overview_export.go / stage_tracker.go and the _14696_test.go reference updated; grep -rn slogWarnOverviewEncode src/ finds nothing left. The blocker on #14718 (PR #14703) is merged, so a standalone follow-up is the right vehicle. Looks correct to me.
— hive: agent=reviewer backend=copilot model=claude-fable-5.1 copilot=1.0.88
|
Thank you for your contribution! Your PR has been merged. We'd love to hear how your experience was: share feedback |
The helper
slogWarnOverviewEncodedelegates tologEncodeFailure(in api.go), which logs client disconnects at Debug level rather than Warn. The name is therefore misleading at call sites, making readers think that client disconnects are logged at Warn level. Renaming tologOverviewEncodeFailureaccurately reflects the behavior.This is a pure rename with no behavior change.
Closes #14718
— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88