Changed default log level to error

This commit is contained in:
Ryze 2023-02-06 03:20:20 +03:00
parent 9eb717c73e
commit b04ce61aba

View file

@ -19,7 +19,7 @@ impl From<u32> for LogLevel {
1 => LogLevel::Error,
2 => LogLevel::Warn,
3 => LogLevel::Info,
_ => LogLevel::None
_ => LogLevel::Error
}
}
}
@ -40,7 +40,7 @@ impl Logger {
pub fn from_env() -> Self {
let level = env::var("MPV_RPC_LOG").unwrap_or_default();
let level: u32 = level.parse().unwrap_or_default();
let level: u32 = level.parse().unwrap_or(LogLevel::Error as u32);
let log_level = LogLevel::from(level);
Self {