1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

Fix output for log protocol header (#4926)

* Fix output for log protocol header

* Fix wrong merge
This commit is contained in:
Daniel Mieg 2024-05-10 09:54:07 +02:00 committed by GitHub
parent ac55ddf525
commit 125c48ee75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,7 +150,7 @@ func allLogsHaveBeenPrinted(protocols []LogProtocol, page int, count int, err er
}
func printHeader(logEntry LogResultsV2, api SoftwareComponentApiInterface) {
if logEntry.Status != `Success` {
if logEntry.Status == `Error` {
log.Entry().Infof("\n")
AddDefaultDashedLine(1)
log.Entry().Infof("%s (%v)", logEntry.Name, api.ConvertTime(logEntry.Timestamp))