Skip to content

Commit d003636

Browse files
committed
chore: add date information to windows startup logs
1 parent c4b26f3 commit d003636

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

provisionersdk/scripts/bootstrap_windows.ps1

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ while ($true) {
1414
# executing shell to be named "sshd", otherwise it fails. See:
1515
# https://github.com/microsoft/vscode-remote-release/issues/5699
1616
$BINARY_URL="${ACCESS_URL}/bin/coder-windows-${ARCH}.exe"
17-
Write-Output "Fetching coder agent from ${BINARY_URL}"
17+
Write-Output "$(Get-Date) Fetching coder agent from ${BINARY_URL}"
1818
Invoke-WebRequest -Uri "${BINARY_URL}" -OutFile $env:TEMP\sshd.exe
1919
break
2020
} catch {
21-
Write-Output "error: unhandled exception fetching coder agent:"
21+
Write-Output "$(Get-Date) error: unhandled exception fetching coder agent:"
2222
Write-Output $_
23-
Write-Output "trying again in 30 seconds..."
23+
Write-Output "$(Get-Date) trying again in 30 seconds..."
2424
Start-Sleep -Seconds 30
2525
}
2626
}
2727

2828
# Check if running in a Windows container
2929
if (-not (Get-Command 'Set-MpPreference' -ErrorAction SilentlyContinue)) {
30-
Write-Output "Set-MpPreference not available, skipping..."
30+
Write-Output "$(Get-Date) Set-MpPreference not available, skipping..."
3131
} else {
3232
Set-MpPreference -DisableRealtimeMonitoring $true -ExclusionPath $env:TEMP\sshd.exe
3333
}

0 commit comments

Comments
 (0)