fmt: actionName -> actionTitle

This commit is contained in:
jamesread 2024-02-23 21:30:35 +00:00
parent 6da050e3b9
commit 6a1af44aa0
1 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ func DefaultExecutor() *Executor {
} }
type listener interface { type listener interface {
OnExecutionStarted(actionName string) OnExecutionStarted(actionTitle string)
OnExecutionFinished(logEntry *InternalLogEntry) OnExecutionFinished(logEntry *InternalLogEntry)
} }
@ -206,13 +206,13 @@ func stepRequestAction(req *ExecutionRequest) bool {
if req.Action == nil { if req.Action == nil {
log.WithFields(log.Fields{ log.WithFields(log.Fields{
"actionTitle": req.ActionTitle, "actionTitle": req.ActionTitle,
}).Infof("Action finding") }).Infof("Action finding by title")
req.Action = req.Cfg.FindAction(req.ActionTitle) req.Action = req.Cfg.FindAction(req.ActionTitle)
if req.Action == nil { if req.Action == nil {
log.WithFields(log.Fields{ log.WithFields(log.Fields{
"actionName": req.ActionTitle, "actionTitle": req.ActionTitle,
}).Warnf("Action requested, but not found") }).Warnf("Action requested, but not found")
req.logEntry.Stderr = "Action not found: " + req.ActionTitle req.logEntry.Stderr = "Action not found: " + req.ActionTitle