From c0db8d017d0d2b1097c15767fa828a4e330ce5b7 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Sat, 20 Mar 2021 16:40:09 +0800 Subject: [PATCH] gofmt logs (#574) --- core/logx/logs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/logx/logs.go b/core/logx/logs.go index 98519315..9e5c759d 100644 --- a/core/logx/logs.go +++ b/core/logx/logs.go @@ -20,7 +20,6 @@ import ( "github.com/tal-tech/go-zero/core/iox" "github.com/tal-tech/go-zero/core/sysx" "github.com/tal-tech/go-zero/core/timex" - ) const ( @@ -120,6 +119,7 @@ func SetUp(c LogConf) error { if len(c.TimeFormat) > 0 { timeFormat = c.TimeFormat } + switch c.Mode { case consoleMode: setupWithConsole(c)