diff options
Diffstat (limited to 'cli/main.rs')
| -rw-r--r-- | cli/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index 056280c9b..e2b61d33a 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -666,9 +666,11 @@ pub fn main() { target.push(':'); target.push_str(&line_no.to_string()); } - if record.level() >= Level::Info { + if record.level() <= Level::Info { + // Print ERROR, WARN, INFO logs as they are writeln!(buf, "{}", record.args()) } else { + // Add prefix to DEBUG or TRACE logs writeln!( buf, "{} RS - {} - {}", |
