#hide gateway/ws
1 messages · Page 1 of 1 (latest)
Let me check the actual config/docs so I don’t make up a key.
Yeah, the supported way is basically:
-
Do not start the gateway with
--verbose
That’s what turns on the noisygateway/wsrequest/response logging. -
Keep logging at info, for example in
~/.openclaw/openclaw.json:
{
logging: {
level: "info",
consoleLevel: "info"
}
}
- Make sure you do not have:
OPENCLAW_LOG_LEVEL=debug
Then restart:
openclaw gateway restart
Important bit: I don’t see a documented config key to hide only gateway/ws while keeping other debug on. The docs only expose the global knobs above, and --ws-log compact|full only matters when --verbose is enabled.
Docs:
If you’re still seeing gateway/ws spam without --verbose, can you paste:
openclaw --version
and how you’re starting the gateway?
I am starting with 'openclaw gateway --bind lan --token $OPENCLAW_GATEWAY_TOKEN', but do have
"logging": {
"consoleLevel": "info"
},
Let me check whether there’s a supported flag/config for silencing gateway/ws entirely, not just lowering overall verbosity.
Ah, got it, thanks. With that command you’re not enabling --verbose, so this is the key bit:
- the
gateway/wslines you’re seeing are not “debug mode” - in normal mode, OpenClaw still logs “interesting” WS events at info
- so
consoleLevel: "info"will still show them
Two supported options:
If you only want a quieter terminal
{
logging: {
consoleLevel: "warn"
}
}
If you want them out of the file logs too
{
logging: {
level: "warn",
consoleLevel: "warn"
}
}
But that will hide all info logs, not just gateway/ws.
I checked the docs/CLI, and I don’t see a documented per-subsystem mute for gateway/ws. Also --ws-log auto|compact|full only changes formatting, not on/off.
So, short version: yes globally, no not just for gateway/ws with a supported config knob right now.
Can you paste:
openclaw --version
If you want, I can also help figure out whether what you’re seeing is more than the expected “interesting only” WS lines.
openclaw v2026.4.12
Thanks, that helps. On v2026.4.12, I’d treat this as expected behavior, not a version mismatch.
So the answer is still:
- there’s no documented knob to mute only
gateway/ws - those lines are normal info WS logs, not just debug
- if you want less noise, the supported workaround is:
{
logging: {
consoleLevel: "warn"
}
}
or, if you want file logs quieter too:
{
logging: {
level: "warn",
consoleLevel: "warn"
}
}
Then restart:
openclaw gateway restart
Docs: