Skip to content

Commit

Permalink
app: hard mute sled and rustls!
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfi committed Jan 28, 2025
1 parent b746a24 commit 2639ba2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bin/app/src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,15 @@ pub fn setup_logging() {
// https://gist.github.com/jb-alvarado/6e223936446bb88cd9a93e7028fc2c4f
let mut loggers: Vec<Box<dyn SharedLogger>> = vec![];

let cfg = ConfigBuilder::new().build();
let mut cfg = ConfigBuilder::new();

#[cfg(feature = "enable-filelog")]
{
let mut cfg = cfg.clone();
cfg.add_filter_ignore_str("sled");
cfg.add_filter_ignore_str("rustls");
let cfg = cfg.build();

let log_file = FileRotate::new(
logfile_path(),
AppendCount::new(0),
Expand All @@ -198,10 +203,12 @@ pub fn setup_logging() {
#[cfg(unix)]
None,
);
let file_logger = WriteLogger::new(LevelFilter::Trace, cfg.clone(), log_file);
let file_logger = WriteLogger::new(LevelFilter::Trace, cfg, log_file);
loggers.push(file_logger);
}

let cfg = cfg.build();

#[cfg(target_os = "android")]
{
use android::AndroidLoggerWrapper;
Expand Down

0 comments on commit 2639ba2

Please sign in to comment.