summaryrefslogtreecommitdiffstats
path: root/cmd/update.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/update.go')
-rw-r--r--cmd/update.go4
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 {