mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 12:58:54 -05:00
fix(logger): change log level to which prefix added (#7582)
This commit is contained in:
parent
cca8856fbf
commit
c30c782c2c
3 changed files with 17 additions and 15 deletions
|
@ -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 - {} - {}",
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
[WILDCARD]
|
||||
Files: 46
|
||||
Nodes: [WILDCARD]
|
||||
Identifiers: [WILDCARD]
|
||||
Symbols: [WILDCARD]
|
||||
Types: [WILDCARD]
|
||||
Instantiations: [WILDCARD]
|
||||
Parse time: [WILDCARD]
|
||||
Bind time: [WILDCARD]
|
||||
Check time: [WILDCARD]
|
||||
Emit time: [WILDCARD]
|
||||
Total TS time: [WILDCARD]
|
||||
Compile time: [WILDCARD]
|
||||
DEBUG RS - [WILDCARD] - Files: 46
|
||||
DEBUG RS - [WILDCARD] - Nodes: [WILDCARD]
|
||||
DEBUG RS - [WILDCARD] - Identifiers: [WILDCARD]
|
||||
DEBUG RS - [WILDCARD] - Symbols: [WILDCARD]
|
||||
DEBUG RS - [WILDCARD] - Types: [WILDCARD]
|
||||
DEBUG RS - [WILDCARD] - Instantiations: [WILDCARD]
|
||||
DEBUG RS - [WILDCARD] - Parse time: [WILDCARD]
|
||||
DEBUG RS - [WILDCARD] - Bind time: [WILDCARD]
|
||||
DEBUG RS - [WILDCARD] - Check time: [WILDCARD]
|
||||
DEBUG RS - [WILDCARD] - Emit time: [WILDCARD]
|
||||
DEBUG RS - [WILDCARD] - Total TS time: [WILDCARD]
|
||||
DEBUG RS - [WILDCARD] - Compile time: [WILDCARD]
|
||||
[WILDCARD]
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[WILDCARD]
|
||||
fetch_source_file specifier: file:[WILDCARD]cli/tests/subdir/type_reference.d.ts [WILDCARD]
|
||||
DEBUG RS - [WILDCARD] - fetch_source_file specifier: file:[WILDCARD]cli/tests/subdir/type_reference.d.ts [WILDCARD]
|
||||
[WILDCARD]
|
Loading…
Reference in a new issue