Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Fix summary log #191

Merged
merged 5 commits into from
Mar 16, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
3pointer committed Mar 16, 2020
commit eafa8b7869dc990a4e8e928af498b01cbbfabc42
4 changes: 2 additions & 2 deletions pkg/summary/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (tc *logCollector) Summary(name string) {
for unitName, reason := range tc.failureReasons {
logFields = append(logFields, zap.String("unitName", unitName), zap.Error(reason))
}
log.Info(name+" summary: "+msg, logFields...)
log.Info(name+" Failed summary : "+msg, logFields...)
return
}
totalCost := time.Duration(0)
Expand All @@ -172,7 +172,7 @@ func (tc *logCollector) Summary(name string) {
msg += fmt.Sprintf(", %s: %d", name, data)
}

tc.log(name+" summary: "+msg, logFields...)
tc.log(name+" Success summary: "+msg, logFields...)
}

// SetLogCollector allow pass LogCollector outside
Expand Down