From 12b89062c7d986f41d26c4b21109acd48c0d2fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Mej=C3=ADas=20Rodr=C3=ADguez?= Date: Fri, 9 Aug 2019 14:51:25 -0400 Subject: [PATCH] Add implications to WarningLevel log messages --- cmd/stackDeploy.go | 4 +++- cmd/stackRemove.go | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/stackDeploy.go b/cmd/stackDeploy.go index 4fe23d6..8881894 100644 --- a/cmd/stackDeploy.go +++ b/cmd/stackDeploy.go @@ -35,7 +35,9 @@ var stackDeployCmd = &cobra.Command{ // Guess EndpointID if not set if endpointId == 0 { - logrus.Warning("Endpoint ID not set") + logrus.WithFields(logrus.Fields{ + "implications": "Command will fail if there is not exactly one endpoint available", + }).Warning("Endpoint ID not set") endpoint, err := common.GetDefaultEndpoint() common.CheckError(err) endpointId = int32(endpoint.Id) diff --git a/cmd/stackRemove.go b/cmd/stackRemove.go index 7fc4fef..a0dee99 100644 --- a/cmd/stackRemove.go +++ b/cmd/stackRemove.go @@ -26,7 +26,9 @@ var stackRemoveCmd = &cobra.Command{ // Guess EndpointID if not set if endpointId == 0 { - logrus.Warning("Endpoint ID not set") + logrus.WithFields(logrus.Fields{ + "implications": "Command will fail if there is not exactly one endpoint available", + }).Warning("Endpoint ID not set") endpoint, err := common.GetDefaultEndpoint() common.CheckError(err) endpointId = int32(endpoint.Id)