mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Fix #209
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user