Changed default log level to error
This commit is contained in:
parent
9eb717c73e
commit
b04ce61aba
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue