about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonas Schievink <jonas@schievink.net>2015-11-23 22:09:40 +0100
committerJonas Schievink <jonas@schievink.net>2015-11-23 22:09:40 +0100
commit3f36ce82389952b1c4d760c008881a720278535d (patch)
tree0aafbc5068e932c0b469aa46abb46e31f66c985a
parent69b8e74c31c5bc2a35c40cecbceffba773cdecbf (diff)
downloadrust-3f36ce82389952b1c4d760c008881a720278535d.tar.gz
rust-3f36ce82389952b1c4d760c008881a720278535d.zip
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.
-rw-r--r--src/liblog/directive.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblog/directive.rs b/src/liblog/directive.rs
index 3958969cfca..59e5b72d961 100644
--- a/src/liblog/directive.rs
+++ b/src/liblog/directive.rs
@@ -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> {