Skip to content

Commit

Permalink
clarify debug message for on_exit
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Nov 13, 2023
1 parent d143c0e commit 2a00509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (p *Process) runTaskOnHost(ctx context.Context, tsk *config.Task, hostAddr,
defer func() {
// run on-exit commands if any. it is executed after all commands of the task are done or on error
if len(onExitCmds) > 0 {
log.Printf("[DEBUG] run %d on-exit commands on %s", len(onExitCmds), hostAddr)
log.Printf("[INFO] run %d on-exit commands for %q on %s", len(onExitCmds), tsk.Name, hostAddr)
for _, ec := range onExitCmds {
if _, err := ec.Script(ctx); err != nil {
report(ec.hostAddr, ec.hostName, "failed on-exit command %q (%v)", ec.cmd.Name, err)
Expand Down

0 comments on commit 2a00509

Please sign in to comment.