diff options
Diffstat (limited to 'modules/notification')
-rw-r--r-- | modules/notification/indexer/indexer.go | 6 | ||||
-rw-r--r-- | modules/notification/mail/mail.go | 10 | ||||
-rw-r--r-- | modules/notification/ui/ui.go | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/modules/notification/indexer/indexer.go b/modules/notification/indexer/indexer.go index 45752e411a..66614b2c20 100644 --- a/modules/notification/indexer/indexer.go +++ b/modules/notification/indexer/indexer.go @@ -29,7 +29,7 @@ func (r *indexerNotifier) NotifyCreateIssueComment(doer *models.User, repo *mode if comment.Type == models.CommentTypeComment { if issue.Comments == nil { if err := issue.LoadDiscussComments(); err != nil { - log.Error(4, "LoadComments failed: %v", err) + log.Error("LoadComments failed: %v", err) return } } else { @@ -63,7 +63,7 @@ func (r *indexerNotifier) NotifyUpdateComment(doer *models.User, c *models.Comme if !found { if err := c.Issue.LoadDiscussComments(); err != nil { - log.Error(4, "LoadComments failed: %v", err) + log.Error("LoadComments failed: %v", err) return } } @@ -87,7 +87,7 @@ func (r *indexerNotifier) NotifyDeleteComment(doer *models.User, comment *models if !found { if err := comment.Issue.LoadDiscussComments(); err != nil { - log.Error(4, "LoadComments failed: %v", err) + log.Error("LoadComments failed: %v", err) return } } diff --git a/modules/notification/mail/mail.go b/modules/notification/mail/mail.go index 8bb4173449..11682bf724 100644 --- a/modules/notification/mail/mail.go +++ b/modules/notification/mail/mail.go @@ -37,25 +37,25 @@ func (m *mailNotifier) NotifyCreateIssueComment(doer *models.User, repo *models. } if err := comment.MailParticipants(act, issue); err != nil { - log.Error(4, "MailParticipants: %v", err) + log.Error("MailParticipants: %v", err) } } func (m *mailNotifier) NotifyNewIssue(issue *models.Issue) { if err := issue.MailParticipants(); err != nil { - log.Error(4, "MailParticipants: %v", err) + log.Error("MailParticipants: %v", err) } } func (m *mailNotifier) NotifyIssueChangeStatus(doer *models.User, issue *models.Issue, isClosed bool) { if err := issue.MailParticipants(); err != nil { - log.Error(4, "MailParticipants: %v", err) + log.Error("MailParticipants: %v", err) } } func (m *mailNotifier) NotifyNewPullRequest(pr *models.PullRequest) { if err := pr.Issue.MailParticipants(); err != nil { - log.Error(4, "MailParticipants: %v", err) + log.Error("MailParticipants: %v", err) } } @@ -69,6 +69,6 @@ func (m *mailNotifier) NotifyPullRequestReview(pr *models.PullRequest, r *models act = models.ActionCommentIssue } if err := comment.MailParticipants(act, pr.Issue); err != nil { - log.Error(4, "MailParticipants: %v", err) + log.Error("MailParticipants: %v", err) } } diff --git a/modules/notification/ui/ui.go b/modules/notification/ui/ui.go index 9870043580..a31591c2a7 100644 --- a/modules/notification/ui/ui.go +++ b/modules/notification/ui/ui.go @@ -39,7 +39,7 @@ func (ns *notificationService) Run() { select { case opts := <-ns.issueQueue: if err := models.CreateOrUpdateIssueNotifications(opts.issue, opts.notificationAuthorID); err != nil { - log.Error(4, "Was unable to create issue notification: %v", err) + log.Error("Was unable to create issue notification: %v", err) } } } |