feat: update initialize the log location

This commit is contained in:
LinkinStar 2022-11-11 12:14:52 +08:00
parent e00a03f2dd
commit e5c2c04cb7
1 changed files with 2 additions and 2 deletions

View File

@ -32,12 +32,12 @@ var (
// @in header // @in header
// @name Authorization // @name Authorization
func main() { func main() {
log.SetLogger(zap.NewLogger(
log.ParseLevel(logLevel), zap.WithName("answer"), zap.WithPath(logPath), zap.WithCallerFullPath()))
Execute() Execute()
} }
func runApp() { func runApp() {
log.SetLogger(zap.NewLogger(
log.ParseLevel(logLevel), zap.WithName("answer"), zap.WithPath(logPath), zap.WithCallerFullPath()))
c, err := conf.ReadConfig(cli.GetConfigFilePath()) c, err := conf.ReadConfig(cli.GetConfigFilePath())
if err != nil { if err != nil {
panic(err) panic(err)