From 2a005094bf83de64474bf47ba162c46027cfd8db Mon Sep 17 00:00:00 2001 From: Umputun Date: Mon, 13 Nov 2023 14:18:48 -0600 Subject: [PATCH] clarify debug message for on_exit --- pkg/runner/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/runner/runner.go b/pkg/runner/runner.go index 71e177b4..5067f126 100644 --- a/pkg/runner/runner.go +++ b/pkg/runner/runner.go @@ -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)