Skip to content

fix(openclaw): honour logLevel and logSummaryIntervalMs - #5532

Merged
nicoloboschi merged 1 commit into
mainfrom
fix/openclaw-loglevel-debug
Oct 12, 2026
Merged

nicoloboschi merged 1 commit into
mainfrom
fix/openclaw-loglevel-debug

Conversation

@nicoloboschi

Copy link
Copy Markdown
Collaborator

Found while testing the openclaw fixes on a real gateway: logLevel: "debug" produced no debug lines.

  • getPluginConfig never copied logLevel or logSummaryIntervalMs, so the logger always ran at info with a 5-minute summary, whatever the user set.
  • debugEnabled = debug ?? logLevel === "debug" never reached logLevel, because debug is always a boolean after getPluginConfig.

Tests: log-level.test.ts checks that logLevel: "debug" alone turns on debug lines, and that every manifest default survives getPluginConfig. The second test catches the next field the whitelist forgets. Both fail on main.

Verified on real OpenClaw 2026.10.2: with only logLevel: "debug" set, the gateway log now shows the plugin's debug lines (Registering agent hooks...). On main it showed none.

getPluginConfig never copied either field, so the logger always ran at
info with a 5-minute summary whatever the user set. On top of that,
debugEnabled used `debug ?? logLevel === "debug"`, but debug is always a
boolean after getPluginConfig, so logLevel could never turn on debug lines.

The new test also checks that every manifest default survives
getPluginConfig, which catches the next field the whitelist forgets.
@nicoloboschi
nicoloboschi force-pushed the fix/openclaw-loglevel-debug branch from 1efb411 to cf788e8 Compare October 12, 2026 11:03
@nicoloboschi
nicoloboschi merged commit 72b9dd9 into main Oct 12, 2026
99 checks passed
@nicoloboschi
nicoloboschi deleted the fix/openclaw-loglevel-debug branch October 12, 2026 11:08
@nicoloboschi nicoloboschi mentioned this pull request Nov 3, 2026
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