Fixes debug console output being printed while debugging is disabled

This commit is contained in:
Lord Hepipud 2020-05-30 12:11:30 +02:00
parent 6304e0b1b7
commit f961a854cc

View file

@ -26,6 +26,10 @@ function Write-IcingaConsoleDebug()
[array]$Objects
);
if ((Get-IcingaFrameworkDebugMode) -eq $FALSE) {
return;
}
Write-IcingaConsoleOutput `
-Message $Message `
-Objects $Objects `