mprove warning/verbose messages around namespace in Fission CLI (#2572)

Removed extra warning message while creating HTTP trigger, and updated some verbose logs to show info related to the namespace.
This commit is contained in:
neha_gupta
2022-10-17 17:52:34 +05:30
committed by GitHub
parent 8d65b062f1
commit facd14de90
3 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -494,9 +494,9 @@ func GetResourceNamespace(input cli.Input, deprecatedFlag string) (namespace, cu
if input.String(flagkey.Namespace) != "" {
namespace = input.String(flagkey.Namespace)
currentNS = namespace
console.Verbose(2, "Namespace for resource %s ", currentNS)
return namespace, currentNS, err
}
console.Verbose(2, "Namespace from user %s ", namespace)
if namespace == "" {
if os.Getenv("FISSION_DEFAULT_NAMESPACE") != "" {
@@ -513,7 +513,7 @@ func GetResourceNamespace(input cli.Input, deprecatedFlag string) (namespace, cu
}
}
console.Verbose(2, "Namespace final %s ", currentNS)
console.Verbose(2, "Namespace for resource %s ", currentNS)
return namespace, currentNS, nil
}