From e5c2c04cb738f4e029c640781e538e6dbecbf433 Mon Sep 17 00:00:00 2001 From: LinkinStar Date: Fri, 11 Nov 2022 12:14:52 +0800 Subject: [PATCH] feat: update initialize the log location --- cmd/answer/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/answer/main.go b/cmd/answer/main.go index 44ee2d10..bf1d944f 100644 --- a/cmd/answer/main.go +++ b/cmd/answer/main.go @@ -32,12 +32,12 @@ var ( // @in header // @name Authorization func main() { - log.SetLogger(zap.NewLogger( - log.ParseLevel(logLevel), zap.WithName("answer"), zap.WithPath(logPath), zap.WithCallerFullPath())) Execute() } func runApp() { + log.SetLogger(zap.NewLogger( + log.ParseLevel(logLevel), zap.WithName("answer"), zap.WithPath(logPath), zap.WithCallerFullPath())) c, err := conf.ReadConfig(cli.GetConfigFilePath()) if err != nil { panic(err)