Add log level alignment with OCI
This commit is contained in:
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user