Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

feat: update initialize the log location

LinkinStare5c2c04cb738
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)