diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-12-28 02:34:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-28 02:34:35 +0100 |
commit | 23fb54b4a9cdedb66854b5a586754d3489641590 (patch) | |
tree | a573ee6503a8c43cfd0bbfbec6a443a6abfd665c /Bugzilla/Sentry.pm | |
parent | 253c35c0e0322138176abbfb3825dd85dfeece5c (diff) | |
download | bugzilla-23fb54b4a9cdedb66854b5a586754d3489641590.tar.gz bugzilla-23fb54b4a9cdedb66854b5a586754d3489641590.tar.xz |
Bug 1427230 - Avoid loading CGI::Carp, which makes templates slow.
Diffstat (limited to 'Bugzilla/Sentry.pm')
-rw-r--r-- | Bugzilla/Sentry.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Bugzilla/Sentry.pm b/Bugzilla/Sentry.pm index 8020ef56f..0d7a9c980 100644 --- a/Bugzilla/Sentry.pm +++ b/Bugzilla/Sentry.pm @@ -358,9 +358,8 @@ sub _sentry_die_handler { } sub install_sentry_handler { - require CGI::Carp; - CGI::Carp::set_die_handler(\&_sentry_die_handler); - $main::SIG{__WARN__} = sub { + $SIG{__DIE__} = \&sentry_die_handler; + $SIG{__WARN__} = sub { return if _in_eval(); sentry_handle_error('warning', shift); }; |