mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Fixes debug console output being printed while debugging is disabled
This commit is contained in:
parent
6304e0b1b7
commit
f961a854cc
1 changed files with 13 additions and 9 deletions
|
|
@ -26,6 +26,10 @@ function Write-IcingaConsoleDebug()
|
||||||
[array]$Objects
|
[array]$Objects
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ((Get-IcingaFrameworkDebugMode) -eq $FALSE) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Write-IcingaConsoleOutput `
|
Write-IcingaConsoleOutput `
|
||||||
-Message $Message `
|
-Message $Message `
|
||||||
-Objects $Objects `
|
-Objects $Objects `
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue