From ba9f9b8725a9c31f5ea3d0a1f4b98dafc14184ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Mej=C3=ADas=20Rodr=C3=ADguez?= Date: Tue, 6 Aug 2019 23:13:32 -0400 Subject: [PATCH] Add extra logging when getting stack by name --- cmd/stackDeploy.go | 4 +++- cmd/stackRemove.go | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) 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) {