summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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});