Skip to content

Commit

Permalink
make message about long-running processes a warning instead of verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
jantari committed Jul 30, 2022
1 parent 80d5edd commit 4145783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion private/Invoke-PackageCommand.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
while ($PSAsyncRunspace.IsCompleted -eq $false) {
# Print message once every minute after an initial 5 minutes of silence
if ($RunspaceTimer.Elapsed - $LastPrinted -ge [TimeSpan]::FromMinutes(1)) {
Write-Verbose "Process '$Executable' has been running for $($RunspaceTimer.Elapsed)"
Write-Warning "Process '$Executable' has been running for $($RunspaceTimer.Elapsed)"
$LastPrinted = $RunspaceTimer.Elapsed
}
Start-Sleep -Milliseconds 200
Expand Down

0 comments on commit 4145783

Please sign in to comment.