Skip to content

Commit 1f47520

Browse files
committed
BF: CS-2372 sge_execd logs INFO message "TLS certificate lifetime: 31536000s" when TLS is not enabled
1 parent b8a0ec1 commit 1f47520

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/daemons/execd/dispatcher.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ int sge_execd_process_messages() {
9090
#if defined(OCS_WITH_OPENSSL)
9191
bool tls_security = ocs::Bootstrap::has_security_mode(ocs::Bootstrap::BS_SEC_MODE_TLS);
9292
int certificate_lifetime = ocs::Bootstrap::get_cert_lifetime();
93-
INFO(MSG_TLS_CERT_LIFETIME_D, certificate_lifetime);
93+
if (tls_security) {
94+
INFO(MSG_TLS_CERT_LIFETIME_D, certificate_lifetime);
95+
}
9496
uint64_t certificate_check_interval = sge_gmt32_to_gmt64(certificate_lifetime / 20);
9597
uint64_t next_certificate_check = 0;
9698
#endif

0 commit comments

Comments
 (0)