summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2015-11-04 21:53:13 +0100
committerDylan Hardison <dylan@mozilla.com>2015-11-04 22:45:15 +0100
commit7f43eebe16d93b9ba0eef6a42b570b594dc33da6 (patch)
treebe08aa12e9545b26733705f6958dae0cfc738e08
parent2776e92227827959dbd576e5b42c2da98464448d (diff)
downloadbugzilla-7f43eebe16d93b9ba0eef6a42b570b594dc33da6.tar.gz
bugzilla-7f43eebe16d93b9ba0eef6a42b570b594dc33da6.tar.xz
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."
-rw-r--r--Bugzilla/WebService/Server.pm11
1 files changed, 8 insertions, 3 deletions
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});