1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

[ABAP] Add type to log output (#5310)

This commit is contained in:
Daniel Mieg
2025-04-03 09:16:22 +02:00
committed by GitHub
parent 753f3ee823
commit 1d330a18cd

View File

@@ -179,11 +179,11 @@ func printLogProtocolEntries(logEntry LogResultsV2, logProtocols []LogProtocol)
})
if logEntry.Status == `Error` {
for _, entry := range logProtocols {
log.Entry().Info(entry.Description)
log.Entry().Infof("%s %s", entry.Type, entry.Description)
}
} else {
for _, entry := range logProtocols {
log.Entry().Debug(entry.Description)
log.Entry().Debugf("%s %s", entry.Type, entry.Description)
}
}
}