fix(logging): make log-level override global and precedence-safe

This commit is contained in:
Peter Steinberger
2026-02-22 11:00:07 +01:00
parent 735a5db15b
commit 06aa7c0a54
15 changed files with 183 additions and 35 deletions

View File

@@ -84,9 +84,9 @@ See [Configuration: Env var substitution](/gateway/configuration#env-var-substit
## Logging
| Variable | Purpose |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OPENCLAW_LOG_LEVEL` | Override log level for both file and console (e.g. `debug`, `trace`). Takes precedence over `logging.level` and `logging.consoleLevel` in config. Useful for temporary debugging or CI. |
| Variable | Purpose |
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OPENCLAW_LOG_LEVEL` | Override log level for both file and console (e.g. `debug`, `trace`). Takes precedence over `logging.level` and `logging.consoleLevel` in config. Invalid values are ignored with a warning. |
### `OPENCLAW_HOME`