mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Add debug output for starting new thread instances
This commit is contained in:
parent
9b947dc069
commit
df7be4a317
1 changed files with 9 additions and 0 deletions
|
|
@ -12,6 +12,15 @@ function New-IcingaThreadInstance()
|
|||
$Name = New-IcingaThreadHash -ShellScript $ScriptBlock -Arguments $Arguments;
|
||||
}
|
||||
|
||||
Write-IcingaDebugMessage -Message (
|
||||
[string]::Format(
|
||||
'Creating new thread instance {0}{1}Arguments:{1}{2}',
|
||||
$Name,
|
||||
"`r`n",
|
||||
($Arguments | Out-String)
|
||||
)
|
||||
);
|
||||
|
||||
$Shell = [PowerShell]::Create();
|
||||
$Shell.RunspacePool = $ThreadPool;
|
||||
[void]$Shell.AddScript($ScriptBlock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue