From b50c2936a1f4094c74df3d8fbd85d30063d04c1c Mon Sep 17 00:00:00 2001 From: Juanjo Rodriguez Date: Mon, 14 Jun 2021 14:16:39 +0200 Subject: [PATCH] cli: Change timestamp to microseconds precision in log (#489) --- cmd/tusd/cli/log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tusd/cli/log.go b/cmd/tusd/cli/log.go index 5475688..254a3b4 100644 --- a/cmd/tusd/cli/log.go +++ b/cmd/tusd/cli/log.go @@ -7,8 +7,8 @@ import ( "github.com/tus/tusd/pkg/handler" ) -var stdout = log.New(os.Stdout, "[tusd] ", log.Ldate|log.Ltime) -var stderr = log.New(os.Stderr, "[tusd] ", log.Ldate|log.Ltime) +var stdout = log.New(os.Stdout, "[tusd] ", log.LstdFlags|log.Lmicroseconds) +var stderr = log.New(os.Stderr, "[tusd] ", log.LstdFlags|log.Lmicroseconds) func logEv(logOutput *log.Logger, eventName string, details ...string) { handler.LogEvent(logOutput, eventName, details...)