Skip to content

Commit

Permalink
fix: Logging in deno to filter out the info
Browse files Browse the repository at this point in the history
  • Loading branch information
jh authored and Blu-J committed Oct 31, 2023
1 parent 9e554bd commit 6c80ff0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions backend/src/bins/start_deno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,12 @@ impl PackageLogger {
use tracing_subscriber::prelude::*;
use tracing_subscriber::{fmt, EnvFilter};

let filter_layer = EnvFilter::builder()
.with_default_directive(
format!("{}=info", std::module_path!().split("::").next().unwrap())
let filter_layer = EnvFilter::default()
.add_directive(
format!("{}=warn", std::module_path!().split("::").next().unwrap())
.parse()
.unwrap(),
)
.from_env_lossy();
);
let fmt_layer = fmt::layer().with_writer(std::io::stderr).with_target(true);
let journald_layer = tracing_journald::layer()
.unwrap()
Expand Down

0 comments on commit 6c80ff0

Please sign in to comment.