Add log level alignment with OCI

This commit is contained in:
Hui, Chunyang 2020-05-06 02:18:06 +00:00 committed by Tate, Hongliang Tian
parent 71475c3e96
commit 72f2a33e2a

@ -145,8 +145,8 @@ fn parse_log_level(level_chars: *const c_char) -> Result<LevelFilter> {
}; };
Ok(match level_string.as_str() { Ok(match level_string.as_str() {
"off" => LevelFilter::Off, "off" => LevelFilter::Off,
"error" => LevelFilter::Error, "panic" | "fatal" | "error" => LevelFilter::Error,
"warn" => LevelFilter::Warn, "warning" | "warn" => LevelFilter::Warn, // Panic, fatal and warning are log levels defined in OCI (Open Container Initiative)
"info" => LevelFilter::Info, "info" => LevelFilter::Info,
"debug" => LevelFilter::Debug, "debug" => LevelFilter::Debug,
"trace" => LevelFilter::Trace, "trace" => LevelFilter::Trace,