From e3389e8ec158ad0bb5937f88daa7420419e2889c Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 30 Aug 2019 12:56:02 +0300 Subject: [PATCH] log: add seconds to terminal output too. --- vlib/log/log.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/log/log.v b/vlib/log/log.v index 3726b94e40..984fe770bc 100644 --- a/vlib/log/log.v +++ b/vlib/log/log.v @@ -54,7 +54,7 @@ pub fn (l Log) error(s string){ case 'terminal': f := term.red('E') t := time.now() - println('[$f ${t.format()}] $s') + println('[$f ${t.format_ss()}] $s') default: l.log_file(s, 'E') @@ -68,7 +68,7 @@ pub fn (l Log) warn(s string){ case 'terminal': f := term.yellow('W') t := time.now() - println('[$f ${t.format()}] $s') + println('[$f ${t.format_ss()}] $s') default: l.log_file(s, 'W') @@ -82,7 +82,7 @@ pub fn (l Log) info(s string){ case 'terminal': f := term.white('I') t := time.now() - println('[$f ${t.format()}] $s') + println('[$f ${t.format_ss()}] $s') default: l.log_file(s, 'I') @@ -96,7 +96,7 @@ pub fn (l Log) debug(s string){ case 'terminal': f := term.blue('D') t := time.now() - println('[$f ${t.format()}] $s') + println('[$f ${t.format_ss()}] $s') default: l.log_file(s, 'D')