aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-06 13:54:48 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-06 13:54:48 -0400
commitdb1fe3483ed2c8c0962ee4395073e0b190310602 (patch)
treeff4895bc560bf1ae4d0ec717b9cf33045e003cac /modules
parent6a16866f4e0908e62c5e5b30e3dc0ef8e4cb0819 (diff)
downloadgitea-db1fe3483ed2c8c0962ee4395073e0b190310602.tar.gz
gitea-db1fe3483ed2c8c0962ee4395073e0b190310602.zip
Fix bug related to log
Diffstat (limited to 'modules')
-rw-r--r--modules/base/conf.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index 4285b52394..0a618ab1d2 100644
--- a/modules/base/conf.go
+++ b/modules/base/conf.go
@@ -150,6 +150,7 @@ func newLogService() {
Cfg.MustValue(modeSec, "CONN"))
}
+ log.Info("%s %s", AppName, AppVer)
log.NewLogger(Cfg.MustInt64("log", "BUFFER_LEN", 10000), LogMode, LogConfig)
log.Info("Log Mode: %s(%s)", strings.Title(LogMode), levelName)
}
@@ -292,8 +293,6 @@ func NewConfigContext() {
if err = os.MkdirAll(RepoRootPath, os.ModePerm); err != nil {
qlog.Fatalf("Fail to create RepoRootPath(%s): %v\n", RepoRootPath, err)
}
-
- log.Info("%s %s", AppName, AppVer)
}
func NewServices() {