diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-24 23:30:49 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-24 23:30:49 +0800 |
commit | 67b43387f44b9e3a03f471d0782bfae34a9b9357 (patch) | |
tree | 1e64a9df900750fe77f38f3445e194a29f42821b /serve.go | |
parent | 3473aa9e42b670aecaf328c8d281d91b0f7f8923 (diff) | |
parent | 0e28dcdac402b3bfc8336fe250e3418939467208 (diff) | |
download | gitea-67b43387f44b9e3a03f471d0782bfae34a9b9357.tar.gz gitea-67b43387f44b9e3a03f471d0782bfae34a9b9357.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'serve.go')
-rw-r--r-- | serve.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -44,6 +44,10 @@ gogs serv provide access auth for repositories`, Flags: []cli.Flag{}, } +func init() { + log.NewLogger(10000, "file", fmt.Sprintf(`{"filename":"%s"}`, "log/serv.log")) +} + func parseCmd(cmd string) (string, string) { ss := strings.SplitN(cmd, " ", 2) if len(ss) != 2 { @@ -228,7 +232,7 @@ func runServ(k *cli.Context) { return } if ref, ok = refs[refname]; !ok { - println("unknow reference name -", refname, "-") + log.Trace("unknow reference name -", refname, "-", b.String()) return } l, err = ref.AllCommits() |