Skip to content

[kernel-1027] update neko client to have optional debugging#163

Merged
archandatta merged 3 commits intomainfrom
archand/disable-liveview-logging-option
Feb 25, 2026
Merged

[kernel-1027] update neko client to have optional debugging#163
archandatta merged 3 commits intomainfrom
archand/disable-liveview-logging-option

Conversation

@archandatta
Copy link
Contributor

@archandatta archandatta commented Feb 25, 2026

Note

Low Risk
Scoped to client-side console logging; main risk is reduced observability if the query param isn’t set or is mis-typed (logs become no-ops).

Overview
The client’s $log plugin is changed from always-on console logging to a level-gated logger that is disabled by default.

Logging can now be enabled per-session via ?log_level= (or ?logLevel=), supporting off/none/empty (fully silent) and incremental levels (error -> warn -> info -> debug) by mapping lower-priority methods to no-ops.

Written by Cursor Bugbot for commit 6c22f62. This will update automatically on new commits. Configure here.

@archandatta archandatta requested a review from rgarcia February 25, 2026 15:55
if (isDebugEnabled()) {
client.on('debug', window.$log.debug)
}
window.$client = client
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should be able to turn off all logging so maybe the query param should be a more generic log level, and it should default to completely off

@archandatta archandatta requested a review from rgarcia February 25, 2026 18:12
@archandatta archandatta merged commit 34f251e into main Feb 25, 2026
4 checks passed
@archandatta archandatta deleted the archand/disable-liveview-logging-option branch February 25, 2026 18:26
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.

2 participants