diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-25 18:26:30 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-25 18:26:30 +0800 |
commit | 19b7f74b75caf8cef50c687d422d761ca74b3b90 (patch) | |
tree | 5924275473b16540f07016fc232fef1757898286 /serve.go | |
parent | 2ec111e1a2b22b2ec6fa2c74800211e8ba69d831 (diff) | |
download | gitea-19b7f74b75caf8cef50c687d422d761ca74b3b90.tar.gz gitea-19b7f74b75caf8cef50c687d422d761ca74b3b90.zip |
add log
Diffstat (limited to 'serve.go')
-rw-r--r-- | serve.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -183,14 +183,14 @@ func runServ(k *cli.Context) { rep, err = git.OpenRepository(repoPath) if err != nil { - println(err.Error()) + println("OpenRepository failed:", err.Error()) log.Error(err.Error()) return } refs, err := rep.AllReferencesMap() if err != nil { - println(err.Error()) + println("Get All References failed:", err.Error()) log.Error(err.Error()) return } @@ -247,7 +247,7 @@ func runServ(k *cli.Context) { // for new branch refs, err = rep.AllReferencesMap() if err != nil { - println(err.Error()) + println("Get All References failed:", err.Error()) log.Error(err.Error()) return } @@ -257,7 +257,7 @@ func runServ(k *cli.Context) { } l, err = ref.AllCommits() if err != nil { - println(err.Error()) + println("Get All Commits failed:", err.Error()) log.Error(err.Error()) return } @@ -267,14 +267,14 @@ func runServ(k *cli.Context) { //log.Info("00000", ref.Oid.String()) last, err = ref.LastCommit() if err != nil { - println(err.Error()) + println("Get last commit failed:", err.Error()) log.Error(err.Error()) return } ref2, err := rep.LookupReference(ref.Name) if err != nil { - println(err.Error()) + println("look up reference failed:", err.Error()) log.Error(err.Error()) return } @@ -282,7 +282,7 @@ func runServ(k *cli.Context) { //log.Info("11111", ref2.Oid.String()) before, err := ref2.LastCommit() if err != nil { - println(err.Error()) + println("Get last commit failed:", err.Error()) log.Error(err.Error()) return } |