log: unify output order between cli and file (#9693)

pull/9699/head
Lukas Neubert 2021-04-12 08:38:47 +02:00 committed by GitHub
parent 8193efb379
commit 9957e5a2c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -126,9 +126,9 @@ fn (mut l Log) log_file(s string, level Level) {
// log_cli writes log line `s` with `level` to stdout.
fn (l &Log) log_cli(s string, level Level) {
f := tag_to_cli(level)
t := time.now()
println('[$f $t.format_ss()] $s')
timestamp := time.now().format_ss()
e := tag_to_cli(level)
println('$timestamp [$e] $s')
}
// send_output writes log line `s` with `level` to either the log file or the console