From 2c3a83913a61f3d81020db658a5679741661d7ca Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Fri, 13 Nov 2015 10:59:28 -0500 Subject: Bug 1209625 - MozReview API Keys should use a more specific error message --- Bugzilla/WebService/Server.pm | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/WebService/Server.pm b/Bugzilla/WebService/Server.pm index ba05a64e8..d1e17a950 100644 --- a/Bugzilla/WebService/Server.pm +++ b/Bugzilla/WebService/Server.pm @@ -22,10 +22,8 @@ use Bugzilla::Error; use Bugzilla::Util qw(datetime_from); use Digest::MD5 qw(md5_base64); -use Encode; use Scalar::Util qw(blessed); use Storable qw(freeze); -use Sys::Syslog qw(:DEFAULT); sub handle_login { my ($self, $class, $method, $full_method) = @_; @@ -38,13 +36,7 @@ sub handle_login { } eval "require $class"; - my $error = $@; - if ($error) { - openlog('apache', 'cons,pid', 'local4'); - syslog('notice', '[rpc_error] ' . encode_utf8($error)); - closelog(); - } - ThrowCodeError('unknown_method', {method => $full_method}) if $error; + ThrowCodeError('unknown_method', {method => $full_method}) if $@; return if ($class->login_exempt($method) and !defined Bugzilla->input_params->{Bugzilla_login}); Bugzilla->login(); -- cgit v1.2.3-24-g4f1b