diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-12-06 11:33:46 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-12-06 13:12:38 +0100 |
| commit | b1d1979cc6d5b92a04a7a7bcc603ea9dfa70372a (patch) | |
| tree | ae0a8212cdd85f7dc71905d81dad432d223774fb | |
| parent | 71ac44a0c25ff6c56c29e47f864e9e0ebf167ffc (diff) | |
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.
| -rw-r--r-- | dashboard/app/reporting_email.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
