aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel García <[email protected]>2019-03-25 13:55:21 +0100
committerDaniel García <[email protected]>2019-03-25 14:21:50 +0100
commitc384f9c0cacb1d8c27646fffd760d32e0d588c2b (patch)
treef414febc4b3bce2da38b87e6f092e9d85ff1cde6
parentafbfebf659baa4c121f520aa0167184b8e1249d5 (diff)
downloadvaultwarden-c384f9c0cacb1d8c27646fffd760d32e0d588c2b.tar.gz
vaultwarden-c384f9c0cacb1d8c27646fffd760d32e0d588c2b.zip
Set default log level to Info, we don't use debug anyway and it just fills the logs with other crates info.
-rw-r--r--src/main.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs
index 51c68891..9e390a31 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -79,13 +79,11 @@ fn init_logging() -> Result<(), fern::InitError> {
message
))
})
- .level(log::LevelFilter::Debug)
- .level_for("hyper", log::LevelFilter::Warn)
- .level_for("rustls", log::LevelFilter::Warn)
- .level_for("handlebars", log::LevelFilter::Warn)
- .level_for("ws", log::LevelFilter::Info)
- .level_for("multipart", log::LevelFilter::Info)
- .level_for("html5ever", log::LevelFilter::Info)
+ .level(log::LevelFilter::Info)
+ // Hide unknown certificate errors if using self-signed
+ .level_for("rustls::session", log::LevelFilter::Off)
+ // Hide failed to close stream messages
+ .level_for("hyper::server", log::LevelFilter::Warn)
.chain(std::io::stdout());
if let Some(log_file) = CONFIG.log_file() {