aboutsummaryrefslogtreecommitdiff
path: root/models/pull.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/pull.go')
-rw-r--r--models/pull.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/models/pull.go b/models/pull.go
index efb24894..d3ea9c78 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -437,9 +437,10 @@ func NewPullRequest(repo *Repository, pull *Issue, labelIDs []int64, uuids []str
RepoName: repo.Name,
IsPrivate: repo.IsPrivate,
}); err != nil {
- log.Error(4, "NotifyWatchers: %v", err)
- } else if err = pull.MailParticipants(); err != nil {
- log.Error(4, "MailParticipants: %v", err)
+ log.Error(2, "NotifyWatchers: %v", err)
+ }
+ if err = pull.MailParticipants(); err != nil {
+ log.Error(2, "MailParticipants: %v", err)
}
pr.Issue = pull
@@ -451,7 +452,7 @@ func NewPullRequest(repo *Repository, pull *Issue, labelIDs []int64, uuids []str
Repository: repo.APIFormat(nil),
Sender: pull.Poster.APIFormat(),
}); err != nil {
- log.Error(4, "PrepareWebhooks: %v", err)
+ log.Error(2, "PrepareWebhooks: %v", err)
}
go HookQueue.Add(repo.ID)