Просмотр исходного кода

fmt: actionName -> actionTitle

jamesread 2 лет назад
Родитель
Сommit
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 {
 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