MCPcopy Create free account
hub / github.com/archlinux/alpm / init_logger

Function init_logger

alpm-mtree/tests/create.rs:39–52  ·  view source on GitHub ↗

Initializes a global logger once.

()

Source from the content-addressed store, hash-verified

37
38/// Initializes a global logger once.
39fn init_logger() -> TestResult {
40 if TermLogger::init(
41 log::LevelFilter::Info,
42 Config::default(),
43 simplelog::TerminalMode::Mixed,
44 simplelog::ColorChoice::Auto,
45 )
46 .is_err()
47 {
48 debug!("Not initializing another logger, as one is initialized already.");
49 }
50
51 Ok(())
52}
53
54/// Creates an .MTREE file (as ALPM-MTREEv1) and validates it.
55#[rstest]

Callers 2

Calls 1

initFunction · 0.50

Tested by

no test coverage detected