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/update.go | |
parent | ff690fd9760e0cfb5ae9e49aecb7a201f7ca8304 (diff) | |
download | gitea-ab13a29cb530457328cf9d3a2511c2db1d5ccaca.tar.gz gitea-ab13a29cb530457328cf9d3a2511c2db1d5ccaca.zip |
Fix #209
Diffstat (limited to 'cmd/update.go')
-rw-r--r-- | cmd/update.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |