Log when sending an error

environments/ppa-mbqj77/deployments/1
Xavier Guimard 10 years ago
parent 052bade608
commit 1a02f69e65
  1. 1
      lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI.pm
  2. 1
      lemonldap-ng-manager/TODO.md

@ -60,6 +60,7 @@ sub sendError {
my ( $self, $req, $err, $code ) = splice @_;
$err ||= $req->error;
$code ||= 500;
$self->lmLog( "Error $code: $err", $code > 499 ? 'error' : 'notice' );
return $self->sendJSONresponse( $req, { error => $err }, code => $code );
}

@ -7,7 +7,6 @@
## Bugs
* No log in case of bad request
* After an Apache restart, if Manager is loaded first, portal cannot be loaded
* Authentication parameters:
* No input is displayed when Multi is choosen in authentication modules

Loading…
Cancel
Save