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

Function init_logging

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

924///
925/// `RUST_LOG` still wins when set, so existing workflows are untouched.
926fn 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
935fn main() {
936 // Initialize logging

Callers 1

mainFunction · 0.85

Calls 2

verbose_requestedFunction · 0.85
initMethod · 0.80

Tested by

no test coverage detected