chore: show total duration in debug

This commit is contained in:
Jan De Dobbeleer 2021-11-17 08:25:52 +01:00 committed by Jan De Dobbeleer
parent 4f39b68d96
commit 14bd8b0f29

View file

@ -163,6 +163,7 @@ func (e *engine) debug() string {
segmentName := fmt.Sprintf("%s(%t)", segment.name, segment.enabled)
e.write(fmt.Sprintf("%-*s - %3d ms - %s\n", largestSegmentNameLength, segmentName, duration, segment.stringValue))
}
e.write(fmt.Sprintf("\n\x1b[1mRun duration:\x1b[0m %s\n", time.Since(start)))
e.write("\n\x1b[1mLogs:\x1b[0m\n\n")
e.write(e.env.logs())
return e.string()