Install the logger, honouring `--verbose`. Every command advertises `-v, --verbose Emit extra diagnostic output`, but the flag was parsed into a field nothing ever read: logging was initialised before parsing and only `RUST_LOG` could raise the level. The debug lines that explain *which identity a request authenticated as* already existed — they were simply unreachable through the documented fla
()
| 906 | /// |
| 907 | /// `RUST_LOG` still wins when set, so existing workflows are untouched. |
| 908 | fn init_logging() { |
| 909 | let default = if verbose_requested() { |
| 910 | VERBOSE_FILTER |
| 911 | } else { |
| 912 | "warn" |
| 913 | }; |
| 914 | env_logger::Builder::from_env(env_logger::Env::default().default_filter_or(default)).init(); |
| 915 | } |
| 916 | |
| 917 | fn main() { |
| 918 | // Initialize logging |
no test coverage detected