fix: correct debug logger prefix in plot/components/svg/graph#13220
Draft
Planeshifter wants to merge 1 commit into
Draft
fix: correct debug logger prefix in plot/components/svg/graph#13220Planeshifter wants to merge 1 commit into
plot/components/svg/graph#13220Planeshifter wants to merge 1 commit into
Conversation
The `lib/props/auto-render/set.js` file initialized its `debug` logger with the prefix `'canvas:set:auto-render'`, a copy-paste artifact from the sibling `canvas` package. Every other debug logger in the `graph` package uses the `graph:*` prefix, and 7 of the 8 sibling packages in `@stdlib/plot/components/svg/*` that expose an `auto-render` setter prefix their logger with their own package name (majority conformance ~87%). Change the string to `'graph:set:auto-render'` so debug output is filtered under `DEBUG=graph:*` as expected.
Member
Author
|
Note on the failing Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request:
@stdlib/plot/components/svg/graph/lib/props/auto-render/set.js. Thedebuglogger was initialized with the prefix'canvas:set:auto-render'— carried over from the siblingcanvaspackage — instead of'graph:set:auto-render'. As a consequence, debug output from the graph component's auto-render setter was emitted under the wrong namespace and would not surface when a user setDEBUG=graph:*.plot/components/svg/graphChange the
debuglogger prefix inlib/props/auto-render/set.jsfrom'canvas:set:auto-render'to'graph:set:auto-render'. Every other logger in thegraphpackage already uses thegraph:*prefix, and 7 of 8 sibling packages in@stdlib/plot/components/svg/*that expose an auto-render setter prefix their logger with their own package slug (~87% conformance). Behavior is unchanged; only the debug label is corrected.Related Issues
No.
Questions
No.
Other
Diff is a one-line string change under
lib/props/auto-render/set.js; no source, test, or documentation depends on the old string.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored by an automated drift-detection routine run under Claude Code. The routine sampled the
@stdlib/plot/components/svgnamespace, extracted structural and semantic features from all 12 packages, identified the debug-logger-prefix convention as a majority pattern with a single deviating package, and applied a mechanical one-line fix. Three independent validation agents confirmed the deviation as a copy-paste artifact with no dependents.Generated by Claude Code