Add TRACE to the known log levels

The `log` crate on crates.io already knows TRACE, but the internal
liblog doesn't, which causes it to spew errors when a TRACE level is
defined.
This commit is contained in:
Jonas Schievink 2015-11-23 22:09:40 +01:00
parent 69b8e74c31
commit 3f36ce8238

View File

@ -17,7 +17,7 @@ pub struct LogDirective {
pub level: u32,
}
pub const LOG_LEVEL_NAMES: [&'static str; 4] = ["ERROR", "WARN", "INFO", "DEBUG"];
pub const LOG_LEVEL_NAMES: [&'static str; 5] = ["ERROR", "WARN", "INFO", "DEBUG", "TRACE"];
/// Parse an individual log level that is either a number or a symbolic log level
fn parse_log_level(level: &str) -> Option<u32> {