Skip to content

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Oct 11, 2023
1 parent bbdf247 commit 00e2d77
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ class ContainerBuildServiceImpl implements ContainerBuildService {
saveLayersToContext(req, context)
}
resp = buildStrategy.build(req)
log.info "== Build request ${req.id} completed with status=$resp.exitStatus; stdout: (see below)\n${indent(resp.logs)}"
def msg = "== Build request ${req.id} completed with status=$resp.exitStatus"
if( log.isTraceEnabled() )
msg += "; stdout: (see below)\n${indent(resp.logs)}"
log.info(msg)
return resp
}
catch (Throwable e) {
Expand Down

0 comments on commit 00e2d77

Please sign in to comment.