diff --git a/cmd/stackDeploy.go b/cmd/stackDeploy.go index 1cbe3a8..6ed48ad 100644 --- a/cmd/stackDeploy.go +++ b/cmd/stackDeploy.go @@ -44,7 +44,9 @@ var stackDeployCmd = &cobra.Command{ } logrus.WithFields(logrus.Fields{ - "stack": stackName, + "stack": stackName, + "endpoint": endpointId, + "swarm": endpointSwarmClusterId, }).Debug("Getting stack") retrievedStack, stackRetrievalErr := common.GetStackByName(stackName, endpointSwarmClusterId, endpointId) switch stackRetrievalErr.(type) { diff --git a/cmd/stackRemove.go b/cmd/stackRemove.go index d37292e..500feaf 100644 --- a/cmd/stackRemove.go +++ b/cmd/stackRemove.go @@ -16,6 +16,9 @@ var stackRemoveCmd = &cobra.Command{ Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { stackName := args[0] + logrus.WithFields(logrus.Fields{ + "stack": stackName, + }).Debug("Getting stack") stack, err := common.GetStackByName(stackName, "", 0) switch err.(type) {