#hide gateway/ws

1 messages · Page 1 of 1 (latest)

main flame
#

Can you set debug such that we don't see all the gateway/ws debug in the logs?

peak bridgeBOT
ancient pelicanBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> âś… Mark Solution

elfin matrixBOT
#

Let me check the actual config/docs so I don’t make up a key.

#

Yeah, the supported way is basically:

  1. Do not start the gateway with --verbose
    That’s what turns on the noisy gateway/ws request/response logging.

  2. Keep logging at info, for example in ~/.openclaw/openclaw.json:

{
  logging: {
    level: "info",
    consoleLevel: "info"
  }
}
  1. Make sure you do not have:
#
openclaw --version

and how you’re starting the gateway?

main flame
#

I am starting with 'openclaw gateway --bind lan --token $OPENCLAW_GATEWAY_TOKEN', but do have

"logging": {
"consoleLevel": "info"
},

elfin matrixBOT
#

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/ws lines 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.

main flame
#

openclaw v2026.4.12

elfin matrixBOT
#

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: