diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2020-09-23 00:08:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 11:08:10 -0400 |
commit | c30c782c2c22d725c007623dbf43009999a2b184 (patch) | |
tree | 7720588f05fd95ffc45296be5ec9ae4a0d75f1ab /cli/main.rs | |
parent | cca8856fbf9552ccd7c6fe4eb6cbb8d521978a21 (diff) |
fix(logger): change log level to which prefix added (#7582)
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 - {} - {}", |