Used certificate is only printed on debug mode now

This commit is contained in:
Lord Hepipud 2019-07-22 12:42:35 +02:00
parent c5903114b2
commit e9583382f5

View file

@ -27,7 +27,7 @@ $SSL | Add-Member -membertype ScriptMethod -name 'LoadServerCertificate' -value
$CertName = [System.Net.Dns]::GetHostEntry('localhost').HostName;
$Icinga2.Log.Write(
$Icinga2.Enums.LogState.Info,
$Icinga2.Enums.LogState.Debug,
[string]::Format(
'Trying to discover certificate for this host with FQDN "{0}"',
$CertName