Skip to content

Commit 4166120

Browse files
committed
pkg/payload/task: Include filename in Task.String
To make it easier to see where the CVO is in the task-node system, by exposing the runlevel and group portions of the filename in logs.
1 parent a7d6e43 commit 4166120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/payload/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (st *Task) Copy() *Task {
108108

109109
func (st *Task) String() string {
110110
manId := getManifestResourceId(*st.Manifest)
111-
return fmt.Sprintf("%s (%d of %d)", manId, st.Index, st.Total)
111+
return fmt.Sprintf("%s (%d of %d, %s)", manId, st.Index, st.Total, st.OriginalFilename)
112112
}
113113

114114
// Run attempts to create the provided object until it:

0 commit comments

Comments
 (0)