Skip to content

Remove redundant success field from logging set-level JSON output#74

Merged
jancurn merged 1 commit intomainfrom
claude/fix-logging-set-level-VVf8m
Mar 13, 2026
Merged

Remove redundant success field from logging set-level JSON output#74
jancurn merged 1 commit intomainfrom
claude/fix-logging-set-level-VVf8m

Conversation

@jancurn
Copy link
Member

@jancurn jancurn commented Mar 13, 2026

Summary

Simplified the JSON output format for the logging-set-level command by removing the redundant success field. The output now only includes the level field, making the response more concise and focused.

Changes

  • Removed the success: true field from the JSON output in setLogLevel() command
  • Updated the formatOutput() call to only include the level property
  • Updated CHANGELOG.md to document this fix

Details

The success field was redundant in the JSON response since the command either succeeds (and returns the output) or fails (and throws an error). By removing this field, the JSON output is now cleaner and more aligned with REST API conventions where the presence of a successful response implies success.

https://claude.ai/code/session_01RgrSu5dW8zFrroHJLjCUdZ

The JSON output convention (per CLAUDE.md) is to indicate success via
exit codes, not a `success` wrapper field. Remove it from the
logging-set-level command's JSON output.

https://claude.ai/code/session_01RgrSu5dW8zFrroHJLjCUdZ
@jancurn jancurn merged commit 04bb48a into main Mar 13, 2026
6 checks passed
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.

3 participants