From 7e6cd89114b43900c6b3d871f1b75b4fd16bed0c Mon Sep 17 00:00:00 2001 From: Shun Date: Sat, 10 Sep 2022 01:34:18 +0900 Subject: [PATCH] cli: Change timestamp to microseconds in log (#794) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 内藤峻 --- pkg/handler/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/handler/config.go b/pkg/handler/config.go index dbec426..9b729b8 100644 --- a/pkg/handler/config.go +++ b/pkg/handler/config.go @@ -59,7 +59,7 @@ type Config struct { func (config *Config) validate() error { if config.Logger == nil { - config.Logger = log.New(os.Stdout, "[tusd] ", log.Ldate|log.Ltime) + config.Logger = log.New(os.Stdout, "[tusd] ", log.Ldate|log.Lmicroseconds) } base := config.BasePath