diff --git a/modules/log/log.go b/modules/log/log.go index 0c07c7c6..e1bab8ae 100644 --- a/modules/log/log.go +++ b/modules/log/log.go @@ -9,7 +9,10 @@ import ( "github.com/gogits/logs" ) -var logger *logs.BeeLogger +var ( + logger *logs.BeeLogger + Mode, Config string +) func init() { logger = logs.NewLogger(10000) @@ -17,6 +20,7 @@ func init() { } func NewLogger(bufLen int64, mode, config string) { + Mode, Config = mode, config logger = logs.NewLogger(bufLen) logger.SetLogger(mode, config) } diff --git a/serve.go b/serve.go index a4d5a727..35adcaca 100644 --- a/serve.go +++ b/serve.go @@ -73,6 +73,7 @@ func In(b string, sl map[string]int) bool { } func runServ(k *cli.Context) { + fmt.Println("new serv request", log.Mode, log.Config) log.Trace("new serv request") base.NewConfigContext()