Skip to content

Commit

Permalink
Supress rusoto_core::request debug logs (openzfs#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
manoj-joseph authored Sep 29, 2021
1 parent 6854d49 commit 3836995
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/zfs_object_agent/zettaobject/src/init.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use crate::kernel_connection::KernelServerState;
use crate::user_connection::UserServerState;
use lazy_static::lazy_static;
use log::*;
use log::LevelFilter;
use log4rs::append::console::ConsoleAppender;
use log4rs::append::file::FileAppender;
use log4rs::config::Logger;
use log4rs::config::{Appender, Config, Root};
use log4rs::encode::pattern::PatternEncoder;
use zettacache::ZettaCache;
Expand Down Expand Up @@ -33,6 +34,8 @@ fn setup_console_logging(verbosity: u64) {
),
),
)
// rusoto_core::request is very chatty when set to debug. So, set it to info.
.logger(Logger::builder().build("rusoto_core::request", LevelFilter::Info))
.build(
Root::builder()
.appender("stdout")
Expand All @@ -56,6 +59,8 @@ fn setup_logfile(verbosity: u64, logfile: &str) {
),
),
)
// rusoto_core::request is very chatty when set to debug. So, set it to info.
.logger(Logger::builder().build("rusoto_core::request", LevelFilter::Info))
.build(
Root::builder()
.appender("logfile")
Expand Down

0 comments on commit 3836995

Please sign in to comment.