From 4aea2760b6f977b08bfa37b714b96514f272c3ef Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Tue, 17 Jan 2017 20:38:22 +0000 Subject: [PATCH] Hide some warnings (#1135) --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm index a1e2896ce..c76dec386 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm @@ -263,8 +263,9 @@ sub getApacheSession { } ); - if ( $as->error ) { - $self->lmLog( $as->error, 'info' ); + if ( my $err = $as->error ) { + $self->lmLog( $err, + ( $err =~ /Object does not exist/ ? 'notice' : 'error' ) ); return; } @@ -619,7 +620,7 @@ sub cookie { $f =~ s/_/-/g; push @res, "$f=$h{$_}" if ( $h{$_} ); } - push @res, 'secure' if($h{secure}); + push @res, 'secure' if ( $h{secure} ); return join( '; ', @res ); }