mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Add implications to WarningLevel log messages
This commit is contained in:
parent
105178c07c
commit
12b89062c7
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user