mirror of https://gitee.com/answerdev/answer.git
feat: update initialize the log location
This commit is contained in:
parent
e00a03f2dd
commit
e5c2c04cb7
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue