mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:00:41 +00:00
fix(cli): fall back to file logs when local logs rpc closes
This commit is contained in:
@@ -56,7 +56,7 @@ openclaw logs --url ws://127.0.0.1:18789 --token "$OPENCLAW_GATEWAY_TOKEN"
|
||||
## Notes
|
||||
|
||||
- Use `--local-time` to render timestamps in your local timezone.
|
||||
- If the local loopback Gateway asks for pairing, `openclaw logs` falls back to the configured local log file automatically. Explicit `--url` targets do not use this fallback.
|
||||
- If the implicit local loopback Gateway asks for pairing, closes during connect, or times out before `logs.tail` answers, `openclaw logs` falls back to the configured Gateway file log automatically. Explicit `--url` targets do not use this fallback.
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
@@ -73,9 +73,10 @@ In JSON mode, the CLI emits `type`-tagged objects:
|
||||
- `notice`: truncation / rotation hints
|
||||
- `raw`: unparsed log line
|
||||
|
||||
If the local loopback Gateway asks for pairing, `openclaw logs` falls back to
|
||||
the configured local log file automatically. Explicit `--url` targets do not
|
||||
use this fallback.
|
||||
If the implicit local loopback Gateway asks for pairing, closes during connect,
|
||||
or times out before `logs.tail` answers, `openclaw logs` falls back to the
|
||||
configured Gateway file log automatically. Explicit `--url` targets do not use
|
||||
this fallback.
|
||||
|
||||
If the Gateway is unreachable, the CLI prints a short hint to run:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user