Fixes debug messages being written while no debug option was defined

This commit is contained in:
Christian Stein 2020-03-25 22:12:17 +01:00
parent eb948d8d22
commit 7a732de5f4

View file

@ -8,7 +8,7 @@ function Write-IcingaDebugMessage()
return; return;
} }
if ($global:IcingaDaemonData.DebugMode -eq $FALSE) { if ($null -eq $global:IcingaDaemonData -Or $global:IcingaDaemonData.DebugMode -eq $FALSE) {
return; return;
} }