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) = @_;
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});