Skip to content

Commit cb02ded

Browse files
committed
Bug 1157124: don't report sql search errors to senty
1 parent 707a97b commit cb02ded

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Bugzilla/Sentry.pm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@ sub sentry_handle_error {
174174
}
175175
}
176176

177+
# invalid boolean search errors need special handling
178+
if ($message =~ /selectcol_arrayref failed: syntax error/
179+
&& $message =~ /IN BOOLEAN MODE/
180+
&& $message =~ /at Bugzilla\/Search\.pm/)
181+
{
182+
$send_to_sentry = 0;
183+
}
184+
177185
# for now, don't send patchreader errors to sentry
178186
$send_to_sentry = 0
179187
if $logger eq 'patchreader';

0 commit comments

Comments
 (0)