Преглед на файлове

fmt: actionName -> actionTitle

jamesread преди 2 години
родител
ревизия
6a1af44aa0
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      internal/executor/executor.go

+ 3 - 3
internal/executor/executor.go

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