File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,11 @@ use strict;
2121use Bugzilla::Error;
2222use Bugzilla::Util qw( datetime_from) ;
2323
24- use Scalar::Util qw( blessed) ;
2524use Digest::MD5 qw( md5_base64) ;
26-
25+ use Encode;
26+ use Scalar::Util qw( blessed) ;
2727use Storable qw( freeze) ;
28+ use Sys::Syslog qw( :DEFAULT) ;
2829
2930sub 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 });
You can’t perform that action at this time.
0 commit comments