Browse Source

Set default log level for whole crate

refactor/no-log-handler
Philipp Hoenisch 3 years ago
parent
commit
2cc2822075
No known key found for this signature in database GPG Key ID: E5F8E74C672BC666
  1. 1
      daemon/src/logger.rs

1
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()

Loading…
Cancel
Save