The --log-level serve flag (and LOG_LEVEL env) only says "Log level" in its help text. Users cannot tell which values are accepted.
Requested:
- The flag help string should enumerate the accepted levels (for example
debug, info, warn, error) and the default.
- An unknown level should fail fast at startup with a clear error naming the accepted values instead of silently falling back.
- Add a unit test covering the rejection of an unknown level.
- Mention the accepted values in README.md where
--log-level is documented (add a line if it is not documented yet).
Keep the change small and focused.
The
--log-levelserve flag (andLOG_LEVELenv) only says "Log level" in its help text. Users cannot tell which values are accepted.Requested:
debug,info,warn,error) and the default.--log-levelis documented (add a line if it is not documented yet).Keep the change small and focused.