mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-19 20:16:12 +00:00
Include Sha / Branch in hook logs
This commit is contained in:
@@ -121,7 +121,7 @@ func PostHook(c web.C, w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
// inserts the commit into the database
|
// inserts the commit into the database
|
||||||
if err := datastore.PostCommit(ctx, &commit); err != nil {
|
if err := datastore.PostCommit(ctx, &commit); err != nil {
|
||||||
log.Printf("Unable to persist commit. %s\n", err)
|
log.Printf("Unable to persist commit %s@%s. %s\n", commit.Sha, commit.Branch, err)
|
||||||
w.WriteHeader(http.StatusBadRequest)
|
w.WriteHeader(http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user