]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1209625 - Error when using bzexport: abort: REST error on PUT to https://bugzilla...
authorDylan Hardison <dylan@mozilla.com>
Wed, 4 Nov 2015 20:53:13 +0000 (15:53 -0500)
committerDylan Hardison <dylan@mozilla.com>
Wed, 4 Nov 2015 21:45:15 +0000 (16:45 -0500)
Bugzilla/WebService/Server.pm

index 48e28451896a047f177eb6199bbf4edc241eee2c..ba05a64e8571428a103701a47f8d53879ecb05cf 100644 (file)
@@ -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});