mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-02-21 19:48:53 +02:00
Only print logs if error occurred (#4823)
This commit is contained in:
parent
4e3fa38dd3
commit
f51fbc3e4e
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user