Browse Source
Set default log level for whole crate
refactor/no-log-handler
Philipp Hoenisch
3 years ago
No known key found for this signature in database
GPG Key ID: E5F8E74C672BC666
1 changed files with
1 additions and
0 deletions
-
daemon/src/logger.rs
|
|
@ -13,6 +13,7 @@ pub fn init(level: LevelFilter, json_format: bool) -> Result<()> { |
|
|
|
let filter = EnvFilter::from_default_env() |
|
|
|
.add_directive(format!("taker={}", level).parse()?) |
|
|
|
.add_directive(format!("maker={}", level).parse()?) |
|
|
|
.add_directive(format!("daemon={}", level).parse()?) |
|
|
|
.add_directive(format!("rocket={}", level).parse()?); |
|
|
|
|
|
|
|
let builder = FmtSubscriber::builder() |
|
|
|