Print logging level

This commit is contained in:
Wiktor Mazur
2020-05-12 20:34:48 +02:00
parent 51303d3553
commit 9318611f5e
+8 -2
View File
@@ -63,7 +63,13 @@ fn get_logging_level() -> LevelFilter {
.to_lowercase() .to_lowercase()
.as_str() .as_str()
{ {
"debug" => LevelFilter::Debug, "debug" => {
_ => LevelFilter::Info, info!("Logging level set to debug");
LevelFilter::Debug
},
_ => {
info!("Logging level set to info");
LevelFilter::Info
},
} }
} }