Skip to content

Silence noisy notifications, clarify not-noisy ones, tweak to template#8

Open
uberbrady wants to merge 2 commits intomainfrom
silence_debug_mode
Open

Silence noisy notifications, clarify not-noisy ones, tweak to template#8
uberbrady wants to merge 2 commits intomainfrom
silence_debug_mode

Conversation

@uberbrady
Copy link
Member

@uberbrady uberbrady commented Feb 13, 2026

We used to only allow {debug: true} (or false) for getting debugging info. And, for developing or working on the snippet, that was actually pretty good! But the challenge is/was, that when you're just using the JS, it was making a ton of noises about the internal states of the JS. This was not helpful to the implementor, who just needs to know some more basic stuff about which fields we've latched on to, etc.

So we've changed it now to be either true (a boolean), false (also boolean) or "verbose" (a string). true now just gives you the basic info that you need to troubleshoot which fields it's attaching to, etc. And verbose will give you the old behavior.

One thing we should probably do before merging this - the validator uses "BooleanOrString" - but that's not correct; it's "BooleanOrVerbose" - matching only that string. This way if someone accidentally passes in {debug: "trace"} it will fail immediately and not just act weird. Let me get that handled real quick.

(This is now done; in the process I found that when debug=false it was not giving good error reporting when types were actually incorrect for the passed-in parameters)

@uberbrady uberbrady marked this pull request as ready for review February 13, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant