diff options
author | slene <vslene@gmail.com> | 2014-03-30 10:05:39 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-30 10:05:39 +0800 |
commit | 3f657607393e35c96a3519ac589778cb021b8b95 (patch) | |
tree | 2842bb64f884c0a2ad8b4a7394f9cc12a0c2b697 /modules | |
parent | 107a1eadac72e610a9bcb68498751ca51ec8f51a (diff) | |
download | gitea-3f657607393e35c96a3519ac589778cb021b8b95.tar.gz gitea-3f657607393e35c96a3519ac589778cb021b8b95.zip |
NewLogger set to display line number
Diffstat (limited to 'modules')
-rw-r--r-- | modules/log/log.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/log/log.go b/modules/log/log.go index e1bab8ae4a..f00675481d 100644 --- a/modules/log/log.go +++ b/modules/log/log.go @@ -15,13 +15,14 @@ var ( ) func init() { - logger = logs.NewLogger(10000) - logger.SetLogger("console", `{"level": 0}`) + NewLogger(10000, "console", `{"level": 0}`) } func NewLogger(bufLen int64, mode, config string) { Mode, Config = mode, config logger = logs.NewLogger(bufLen) + logger.EnableFuncCallDepth(true) + logger.SetLogFuncCallDepth(4) logger.SetLogger(mode, config) } |