summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Sentry.pm
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-04-22 09:16:24 +0200
committerByron Jones <glob@mozilla.com>2015-04-22 09:16:24 +0200
commitcb02ded35b4ef93608b2e7693f2a716ed888a06a (patch)
tree442765c2c8d927286673d5b4196188856a3fb8b2 /Bugzilla/Sentry.pm
parent707a97b82926abdfd8b95fa1172447a1820e8e6f (diff)
downloadbugzilla-cb02ded35b4ef93608b2e7693f2a716ed888a06a.tar.gz
bugzilla-cb02ded35b4ef93608b2e7693f2a716ed888a06a.tar.xz
Bug 1157124: don't report sql search errors to senty
Diffstat (limited to 'Bugzilla/Sentry.pm')
-rw-r--r--Bugzilla/Sentry.pm8
1 files changed, 8 insertions, 0 deletions
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';