MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / init_logging

Function init_logging

atomic-cli/src/main.rs:900–907  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

898///
899/// `RUST_LOG` still wins when set, so existing workflows are untouched.
900fn init_logging() {
901 let default = if verbose_requested() {
902 VERBOSE_FILTER
903 } else {
904 "warn"
905 };
906 env_logger::Builder::from_env(env_logger::Env::default().default_filter_or(default)).init();
907}
908
909fn main() {
910 // Initialize logging

Callers 1

mainFunction · 0.85

Calls 2

verbose_requestedFunction · 0.85
initMethod · 0.80

Tested by

no test coverage detected