mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 14:43:52 +03:00
Add more log to locate issue
This commit is contained in:
parent
ca49acfe67
commit
4f6889bef2
2 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
1
serve.go
1
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()
|
||||
|
|
Loading…
Reference in a new issue