diff options
author | Jeff Fearn <jfearn@redhat.com> | 2020-07-08 19:25:58 +1000 |
---|---|---|
committer | Jeff Fearn <jfearn@redhat.com> | 2020-07-21 16:04:35 +1000 |
commit | 33e3b53231730a69278db42596ab6a8fc1b65d1c (patch) | |
tree | 4f6ceb999fc86bf0d2694597452e50eddeda4892 /Bugzilla/Error.pm | |
parent | Bug 1849976 - Need to have mechanism to flow updates on bugzilla on behalf of... (diff) | |
download | bugzilla-33e3b53231730a69278db42596ab6a8fc1b65d1c.tar.gz bugzilla-33e3b53231730a69278db42596ab6a8fc1b65d1c.tar.bz2 bugzilla-33e3b53231730a69278db42596ab6a8fc1b65d1c.zip |
Bug 1849976 - Need to have mechanism to flow updates on bugzilla on behalf of other user
Allow a per source filter for mail addresses.
No trace for ThrowTemplateError.
Ignore Bugzilla::Object for ThrowUserError.
Change-Id: I8bed58b4410f75aba8ebf2ad180cfa984e80b7fa
Diffstat (limited to 'Bugzilla/Error.pm')
-rw-r--r-- | Bugzilla/Error.pm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm index 8b7ce460a..b2b3ec901 100644 --- a/Bugzilla/Error.pm +++ b/Bugzilla/Error.pm @@ -184,7 +184,7 @@ sub ThrowUserError { # impede the error reporting to UI local $" = ', '; local $Data::Dumper::Indent = 0; - local @CARP_NOT = qw(Bugzilla::Error::ThrowUserError); + local @CARP_NOT = qw(Bugzilla::Error::ThrowUserError Bugzilla::Object); Bugzilla->logger()->error(Carp::shortmess( "ThrowUserError for " . Bugzilla->user->login . ": " . Dumper(@_) )); @@ -228,8 +228,12 @@ sub ThrowTemplateError { eval { # eval so that the error logging doesn't # impede the error reporting to UI - local $" = ', '; - Bugzilla->logger()->error("ThrowTemplateError: " . Dumper(@_)); + local $" = ', '; + local $Data::Dumper::Indent = 0; + local @CARP_NOT = qw(Bugzilla::Error::ThrowTemplateError); + Bugzilla->logger()->error(Carp::shortmess( + "ThrowTemplateError: " . Dumper($template_err->[0], $template_err->[1]) + )); }; ## REDHAT EXTENSION END 406301 |