Add implications to WarningLevel log messages

This commit is contained in:
Juan Carlos Mejías Rodríguez 2019-08-09 14:51:25 -04:00
parent 105178c07c
commit 12b89062c7
2 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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)