From b1d1979cc6d5b92a04a7a7bcc603ea9dfa70372a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 6 Dec 2017 11:33:46 +0100 Subject: dashboard/app: improve error message For some reason people sometimes drop syzbot from CC. Then we receive the message from mailing list and can't find the corresponding bug. Log email subject in such cases so that it's easier to find the corresponding email thread. --- dashboard/app/reporting_email.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/app/reporting_email.go b/dashboard/app/reporting_email.go index cb22164a9..1bc6479c3 100644 --- a/dashboard/app/reporting_email.go +++ b/dashboard/app/reporting_email.go @@ -319,7 +319,7 @@ func incomingMail(c context.Context, r *http.Request) error { func loadBugInfo(c context.Context, msg *email.Email) (bug *Bug, bugReporting *BugReporting, reporting *Reporting) { if msg.BugID == "" { - log.Warningf(c, "no bug ID") + log.Warningf(c, "no bug ID (%q)", msg.Subject) return nil, nil, nil } bug, _, err := findBugByReportingID(c, msg.BugID) -- cgit mrf-deployment