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

Function init_logging

atomic-cli/src/main.rs:908–915  ·  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

906///
907/// `RUST_LOG` still wins when set, so existing workflows are untouched.
908fn 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
917fn main() {
918 // Initialize logging

Callers 1

mainFunction · 0.85

Calls 2

verbose_requestedFunction · 0.85
initMethod · 0.80

Tested by

no test coverage detected