diff --git a/lemonldap-ng-common/lib/Lemonldap/NG/Common/CGI.pm b/lemonldap-ng-common/lib/Lemonldap/NG/Common/CGI.pm index c99e09f1e..ac4b98c4a 100644 --- a/lemonldap-ng-common/lib/Lemonldap/NG/Common/CGI.pm +++ b/lemonldap-ng-common/lib/Lemonldap/NG/Common/CGI.pm @@ -297,7 +297,7 @@ sub userLog { my ( $self, $mess, $level ) = @_; if ( $self->{syslog} ) { $self->startSyslog(); - syslog( 'notice', $mess ); + syslog( $level || 'notice', $mess ); } else { $self->lmLog( $mess, $level );