diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-28 01:53:06 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-28 01:53:06 -0400 |
commit | ab13a29cb530457328cf9d3a2511c2db1d5ccaca (patch) | |
tree | fae4cca0e4b24f81f7896b8f8dfab909c2e98bc8 /cmd | |
parent | ff690fd9760e0cfb5ae9e49aecb7a201f7ca8304 (diff) | |
download | gitea-ab13a29cb530457328cf9d3a2511c2db1d5ccaca.tar.gz gitea-ab13a29cb530457328cf9d3a2511c2db1d5ccaca.zip |
Fix #209
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/serve.go | 2 | ||||
-rw-r--r-- | cmd/update.go | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/cmd/serve.go b/cmd/serve.go index 47406dd009..302f8568e1 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -88,7 +88,7 @@ func In(b string, sl map[string]int) bool { } func runServ(k *cli.Context) { - setup("log/serv.log") + setup(path.Join(setting.LogRootPath, "serv.log")) keys := strings.Split(os.Args[2], "-") if len(keys) != 2 { diff --git a/cmd/update.go b/cmd/update.go index cae492cfb1..b8686a3e6e 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -6,12 +6,14 @@ package cmd import ( "os" + "path" "strconv" "github.com/codegangsta/cli" qlog "github.com/qiniu/log" "github.com/gogits/gogs/models" + "github.com/gogits/gogs/modules/setting" ) var CmdUpdate = cli.Command{ @@ -35,7 +37,7 @@ func runUpdate(c *cli.Context) { return } - setup("log/update.log") + setup(path.Join(setting.LogRootPath, "update.log")) args := c.Args() if len(args) != 3 { |