From 7f43eebe16d93b9ba0eef6a42b570b594dc33da6 Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Wed, 4 Nov 2015 15:53:13 -0500 Subject: Bug 1209625 - Error when using bzexport: abort: REST error on PUT to https://bugzilla.mozilla.org/rest/bug/1209611: The requested method 'Bug.update' was not found." --- Bugzilla/WebService/Server.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Bugzilla/WebService') diff --git a/Bugzilla/WebService/Server.pm b/Bugzilla/WebService/Server.pm index 48e284518..ba05a64e8 100644 --- a/Bugzilla/WebService/Server.pm +++ b/Bugzilla/WebService/Server.pm @@ -21,10 +21,11 @@ use strict; use Bugzilla::Error; use Bugzilla::Util qw(datetime_from); -use Scalar::Util qw(blessed); 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,7 +39,11 @@ sub handle_login { eval "require $class"; my $error = $@; - warn "$error" if $error; + if ($error) { + openlog('apache', 'cons,pid', 'local4'); + syslog('notice', '[rpc_error] ' . encode_utf8($error)); + closelog(); + } ThrowCodeError('unknown_method', {method => $full_method}) if $error; return if ($class->login_exempt($method) and !defined Bugzilla->input_params->{Bugzilla_login}); -- cgit v1.2.3-24-g4f1b