From 1369693d8022ce488de0d5a110ff5d0017a6a221 Mon Sep 17 00:00:00 2001 From: David Coutadeur Date: Thu, 27 Jan 2022 13:48:31 +0000 Subject: [PATCH] set a default value for cfgDate + display cfgDate in logs during conf reload (#2566) --- .../lib/Lemonldap/NG/Common/Conf/DefaultValues.pm | 1 + lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Reload.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/DefaultValues.pm b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/DefaultValues.pm index a667f1afc7..1a1f58c8b4 100644 --- a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/DefaultValues.pm +++ b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/DefaultValues.pm @@ -36,6 +36,7 @@ sub defaultValues { 'certificateResetByMailURL' => 'http://auth.example.com/certificateReset', 'certificateResetByMailValidityDelay' => 0, + 'cfgDate' => '0000000000', 'checkDevOpsCheckSessionAttributes' => 1, 'checkDevOpsDisplayNormalizedHeaders' => 1, 'checkDevOpsDownload' => 1, diff --git a/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Reload.pm b/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Reload.pm index 1b416570cb..3f97a55fc7 100644 --- a/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Reload.pm +++ b/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Reload.pm @@ -65,7 +65,7 @@ sub checkConf { or $class->cfgNum != $conf->{cfgNum} or $class->cfgDate != $conf->{cfgDate} ) { - $class->logger->debug("Get configuration $conf->{cfgNum}"); + $class->logger->debug("Get configuration $conf->{cfgNum} aged $conf->{cfgDate}"); unless ( $class->cfgNum( $conf->{cfgNum} ) && $class->cfgDate( $conf->{cfgDate} ) ) { -- GitLab