From cb02ded35b4ef93608b2e7693f2a716ed888a06a Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 22 Apr 2015 15:16:24 +0800 Subject: Bug 1157124: don't report sql search errors to senty --- Bugzilla/Sentry.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Bugzilla/Sentry.pm b/Bugzilla/Sentry.pm index d0d8b68ad..b90e0732e 100644 --- a/Bugzilla/Sentry.pm +++ b/Bugzilla/Sentry.pm @@ -174,6 +174,14 @@ sub sentry_handle_error { } } + # invalid boolean search errors need special handling + if ($message =~ /selectcol_arrayref failed: syntax error/ + && $message =~ /IN BOOLEAN MODE/ + && $message =~ /at Bugzilla\/Search\.pm/) + { + $send_to_sentry = 0; + } + # for now, don't send patchreader errors to sentry $send_to_sentry = 0 if $logger eq 'patchreader'; -- cgit v1.2.3-24-g4f1b