Skip to content

Commit d31f57e

Browse files
committed
improve logging
1 parent b6bebb1 commit d31f57e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ALZ/Private/Deploy-Accelerator-Helpers/Invoke-Terraform.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function Invoke-Terraform {
130130
$arguments += "$planFileName"
131131

132132
if (!$silent) {
133-
Write-ToConsoleLog "Running Apply Command for $action : $command $arguments" -IsSuccess
133+
Write-ToConsoleLog "Running Apply Command for $action : $command $arguments"
134134
& $command $arguments
135135
} else {
136136
& $command $arguments | Write-Verbose
@@ -157,7 +157,7 @@ function Invoke-Terraform {
157157
$arguments += "-destroy"
158158
}
159159

160-
Write-ToConsoleLog "Running Apply Command for $action : $command $arguments" -IsSuccess
160+
Write-ToConsoleLog "Retry Attempt $($currentAttempt) of $($maxAttempts): Running Apply Command for $action : $command $arguments"
161161
& $command $arguments
162162
$exitCode = $LASTEXITCODE
163163
}
@@ -170,7 +170,7 @@ function Invoke-Terraform {
170170
# Stop and display timer
171171
$StopWatch.Stop()
172172
if (!$silent) {
173-
Write-ToConsoleLog "Time taken to complete Terraform apply:" -IsSuccess
173+
Write-ToConsoleLog "Time taken to complete Terraform apply:"
174174
}
175175
$StopWatch.Elapsed | Format-Table
176176

0 commit comments

Comments
 (0)