summaryrefslogtreecommitdiffstats
path: root/serve.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-24 11:58:46 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-24 11:58:46 -0400
commit6337d3bf193491aeb9f6a03b260e7c7089c59f76 (patch)
treeb3ed0d0dce9dca3b0e0da5bb406926c7ac334902 /serve.go
parent414ebe75534e3ae6884b0e2e0c0ea7648a79b725 (diff)
downloadgitea-6337d3bf193491aeb9f6a03b260e7c7089c59f76.tar.gz
gitea-6337d3bf193491aeb9f6a03b260e7c7089c59f76.zip
Show dashbard
Diffstat (limited to 'serve.go')
-rw-r--r--serve.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/serve.go b/serve.go
index 06815b65df..c3eb233c76 100644
--- a/serve.go
+++ b/serve.go
@@ -45,6 +45,7 @@ gogs serv provide access auth for repositories`,
}
func init() {
+ os.MkdirAll("log", os.ModePerm)
log.NewLogger(10000, "file", fmt.Sprintf(`{"filename":"%s"}`, "log/serv.log"))
}
@@ -72,7 +73,6 @@ func runServ(k *cli.Context) {
base.NewConfigContext()
models.LoadModelsConfig()
models.NewEngine()
- base.NewLogService()
keys := strings.Split(os.Args[2], "-")
if len(keys) != 2 {