Skip to content

Commit

Permalink
Only print logs if error occurred (#4823)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMieg authored Feb 9, 2024
1 parent 4e3fa38 commit f51fbc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/abaputils/manageGitRepositoryUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit f51fbc3

Please sign in to comment.