Skip to content

Commit

Permalink
Merge pull request kubernetes#79949 from liyanhui1228/firstbranch
Browse files Browse the repository at this point in the history
Add timestamps to the docker test logs
  • Loading branch information
k8s-ci-robot authored Jul 11, 2019
2 parents b168ab1 + c0c2958 commit a7c619a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/log-dump/log-dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function save-logs() {
function export-windows-docker-event-log() {
local -r node="${1}"

local -r powershell_cmd="powershell.exe -Command \$log=\$(Get-EventLog -LogName Application -Source Docker); Set-Content '${WINDOWS_LOGS_DIR}\\docker.log' \$log.Message"
local -r powershell_cmd="powershell.exe -Command \"\$logs=\$(Get-EventLog -LogName Application -Source Docker | Select-Object -Property TimeGenerated, EntryType, Message); \$logs | Out-File -FilePath '${WINDOWS_LOGS_DIR}\\docker.log'\""

# Retry up to 3 times to allow ssh keys to be properly propagated and
# stored.
Expand Down

0 comments on commit a7c619a

Please sign in to comment.