From 9957e5a2c595169387de2c3bc398fda4fee9387a Mon Sep 17 00:00:00 2001 From: Lukas Neubert Date: Mon, 12 Apr 2021 08:38:47 +0200 Subject: [PATCH] log: unify output order between cli and file (#9693) --- vlib/log/log.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/log/log.v b/vlib/log/log.v index a3c48ee706..a6259a9fdd 100644 --- a/vlib/log/log.v +++ b/vlib/log/log.v @@ -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