Skip to content

Commit 7f43eeb

Browse files
author
Dylan Hardison
committed
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."
1 parent 2776e92 commit 7f43eeb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Bugzilla/WebService/Server.pm

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ use strict;
2121
use Bugzilla::Error;
2222
use Bugzilla::Util qw(datetime_from);
2323

24-
use Scalar::Util qw(blessed);
2524
use Digest::MD5 qw(md5_base64);
26-
25+
use Encode;
26+
use Scalar::Util qw(blessed);
2727
use Storable qw(freeze);
28+
use Sys::Syslog qw(:DEFAULT);
2829

2930
sub handle_login {
3031
my ($self, $class, $method, $full_method) = @_;
@@ -38,7 +39,11 @@ sub handle_login {
3839

3940
eval "require $class";
4041
my $error = $@;
41-
warn "$error" if $error;
42+
if ($error) {
43+
openlog('apache', 'cons,pid', 'local4');
44+
syslog('notice', '[rpc_error] ' . encode_utf8($error));
45+
closelog();
46+
}
4247
ThrowCodeError('unknown_method', {method => $full_method}) if $error;
4348
return if ($class->login_exempt($method)
4449
and !defined Bugzilla->input_params->{Bugzilla_login});

0 commit comments

Comments
 (0)