Skip to content

Commit 9cf0e3c

Browse files
committed
Auto merge of #30012 - jonas-schievink:log-level-trace, r=alexcrichton
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. I made `TRACE` behave like `DEBUG`.
2 parents 561d088 + 3f36ce8 commit 9cf0e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liblog/directive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct LogDirective {
1717
pub level: u32,
1818
}
1919

20-
pub const LOG_LEVEL_NAMES: [&'static str; 4] = ["ERROR", "WARN", "INFO", "DEBUG"];
20+
pub const LOG_LEVEL_NAMES: [&'static str; 5] = ["ERROR", "WARN", "INFO", "DEBUG", "TRACE"];
2121

2222
/// Parse an individual log level that is either a number or a symbolic log level
2323
fn parse_log_level(level: &str) -> Option<u32> {

0 commit comments

Comments
 (0)