mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Avoid truncating long log messages
This commit is contained in:
		@@ -204,7 +204,7 @@ function save-logs() {
 | 
				
			|||||||
function export-windows-docker-event-log() {
 | 
					function export-windows-docker-event-log() {
 | 
				
			||||||
    local -r node="${1}"
 | 
					    local -r node="${1}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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'\""
 | 
					    local -r powershell_cmd="powershell.exe -Command \"\$logs=\$(Get-EventLog -LogName Application -Source Docker | Format-Table -Property TimeGenerated, EntryType, Message -Wrap); \$logs | Out-File -FilePath '${WINDOWS_LOGS_DIR}\\docker.log'\""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Retry up to 3 times to allow ssh keys to be properly propagated and
 | 
					    # Retry up to 3 times to allow ssh keys to be properly propagated and
 | 
				
			||||||
    # stored.
 | 
					    # stored.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user