From 4f6889bef2bea9992330860e8605d5d0d06df23f Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 25 Mar 2014 07:47:04 -0400 Subject: [PATCH] Add more log to locate issue --- modules/log/log.go | 6 +++++- serve.go | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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()