Skip to content

Commit 595b069

Browse files
committed
Write-ScreenInfo does no longer write to the screen, if for the calling function NoDisplay was specified
1 parent 4343717 commit 595b069

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PSLog/PSLog.psm1

+5
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,11 @@ function Write-ScreenInfo
11121112

11131113
[switch]$TaskEnd
11141114
)
1115+
1116+
if ((Get-PSCallStack)[1].InvocationInfo.BoundParameters['NoDisplay'].IsPresent)
1117+
{
1118+
return
1119+
}
11151120

11161121
if (-not $Global:AL_DeploymentStart)
11171122
{

0 commit comments

Comments
 (0)