Merge pull request #122871 from oxxenix/minor-fix

Print error message regardless verbosity value
This commit is contained in:
Kubernetes Prow Robot 2024-01-19 21:04:18 +01:00 committed by GitHub
commit fbb2e6293f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,6 +82,10 @@ kube::log::error_exit() {
local stack_skip="${3:-0}"
stack_skip=$((stack_skip + 1))
# Always print the error message, regardless of KUBE_VERBOSE value
kube::log::error "${message}"
# Additional debug information printed if KUBE_VERBOSE is 4 or greater
if [[ ${KUBE_VERBOSE} -ge 4 ]]; then
local source_file=${BASH_SOURCE[${stack_skip}]}
local source_line=${BASH_LINENO[$((stack_skip - 1))]}