aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-25 08:53:11 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-25 08:53:11 -0400
commit197c4d4a5ba8a9540c49879324194f5f6be4689c (patch)
tree1a0e18a3da39aaf0664b00d45681f956734d73eb /models
parent09e7e76204c694278972f3225040726d2ec687cd (diff)
downloadgitea-197c4d4a5ba8a9540c49879324194f5f6be4689c.tar.gz
gitea-197c4d4a5ba8a9540c49879324194f5f6be4689c.zip
Fix wrong serve command log location and commit repo action
Diffstat (limited to 'models')
-rw-r--r--models/action.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go
index 44d7aea8ca..dffc0e537e 100644
--- a/models/action.go
+++ b/models/action.go
@@ -59,7 +59,7 @@ func (a Action) GetContent() string {
// CommitRepoAction records action for commit repository.
func CommitRepoAction(userId int64, userName string,
repoId int64, repoName string, refName string, commits *base.PushCommits) error {
- log.Trace("action.CommitRepoAction: %d/%s", userId, repoName)
+ log.Trace("action.CommitRepoAction(start): %d/%s", userId, repoName)
bs, err := json.Marshal(commits)
if err != nil {
@@ -92,8 +92,8 @@ func CommitRepoAction(userId int64, userName string,
})
if err != nil {
log.Error("action.CommitRepoAction(notify watches): %d/%s", userId, repoName)
+ return err
}
- return err
}
// Update repository last update time.
@@ -107,6 +107,8 @@ func CommitRepoAction(userId int64, userName string,
log.Error("action.CommitRepoAction(UpdateRepository): %d/%s", userId, repoName)
return err
}
+
+ log.Trace("action.CommitRepoAction(end): %d/%s", userId, repoName)
return nil
}