This commit is contained in:
Unknown 2014-05-28 01:53:06 -04:00
parent ff690fd976
commit ab13a29cb5
13 changed files with 71 additions and 59 deletions

View file

@ -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 {

View file

@ -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 {