mirror of
https://github.com/SAP/jenkins-library.git
synced 2026-06-19 22:58:55 +02:00
Only print logs if error occurred (#4823)
This commit is contained in:
@@ -116,7 +116,7 @@ func printLogProtocolEntries(logEntry LogResultsV2, logProtocols []LogProtocol)
|
||||
sort.SliceStable(logProtocols, func(i, j int) bool {
|
||||
return logProtocols[i].ProtocolLine < logProtocols[j].ProtocolLine
|
||||
})
|
||||
if logEntry.Status != `Success` {
|
||||
if logEntry.Status == `Error` {
|
||||
for _, entry := range logProtocols {
|
||||
log.Entry().Info(entry.Description)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user