Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-22 05:10:29 +01:00
Set default log level to Info, we don't use debug anyway and it just fills the logs with other crates info.
Dieser Commit ist enthalten in:
Ursprung
afbfebf659
Commit
c384f9c0ca
1 geänderte Dateien mit 5 neuen und 7 gelöschten Zeilen
12
src/main.rs
12
src/main.rs
|
@ -79,13 +79,11 @@ fn init_logging() -> Result<(), fern::InitError> {
|
||||||
message
|
message
|
||||||
))
|
))
|
||||||
})
|
})
|
||||||
.level(log::LevelFilter::Debug)
|
.level(log::LevelFilter::Info)
|
||||||
.level_for("hyper", log::LevelFilter::Warn)
|
// Hide unknown certificate errors if using self-signed
|
||||||
.level_for("rustls", log::LevelFilter::Warn)
|
.level_for("rustls::session", log::LevelFilter::Off)
|
||||||
.level_for("handlebars", log::LevelFilter::Warn)
|
// Hide failed to close stream messages
|
||||||
.level_for("ws", log::LevelFilter::Info)
|
.level_for("hyper::server", log::LevelFilter::Warn)
|
||||||
.level_for("multipart", log::LevelFilter::Info)
|
|
||||||
.level_for("html5ever", log::LevelFilter::Info)
|
|
||||||
.chain(std::io::stdout());
|
.chain(std::io::stdout());
|
||||||
|
|
||||||
if let Some(log_file) = CONFIG.log_file() {
|
if let Some(log_file) = CONFIG.log_file() {
|
||||||
|
|
Laden …
In neuem Issue referenzieren