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
()
| 924 | /// |
| 925 | /// `RUST_LOG` still wins when set, so existing workflows are untouched. |
| 926 | fn init_logging() { |
| 927 | let default = if verbose_requested() { |
| 928 | VERBOSE_FILTER |
| 929 | } else { |
| 930 | "warn" |
| 931 | }; |
| 932 | env_logger::Builder::from_env(env_logger::Env::default().default_filter_or(default)).init(); |
| 933 | } |
| 934 | |
| 935 | fn main() { |
| 936 | // Initialize logging |
no test coverage detected