diff --git a/lib/functions/logging/debug-dump.sh b/lib/functions/logging/debug-dump.sh index 76f1c73d37..60ae54130c 100644 --- a/lib/functions/logging/debug-dump.sh +++ b/lib/functions/logging/debug-dump.sh @@ -1,4 +1,7 @@ function debug_dict() { + if [[ "${SHOW_DEBUG}" != "yes" ]]; then + return 0 + fi local dict_name="$1" declare -n dict="${dict_name}" for key in "${!dict[@]}"; do @@ -7,6 +10,9 @@ function debug_dict() { } function debug_var() { + if [[ "${SHOW_DEBUG}" != "yes" ]]; then + return 0 + fi local varname="$1" local -a var_val_array=("${!varname}") display_alert "${gray_color:-}# ${yellow_color:-}${varname}${normal_color:-}=${bright_yellow_color:-}${var_val_array[*]@Q}${ansi_reset_color:-}" "" "info" diff --git a/lib/functions/main/build-packages.sh b/lib/functions/main/build-packages.sh index 9c0be34f38..b07d85f39d 100644 --- a/lib/functions/main/build-packages.sh +++ b/lib/functions/main/build-packages.sh @@ -34,7 +34,7 @@ function main_default_build_packages() { fi fi - display_alert "Artifacts to build:" "${artifacts_to_build[*]}" "warn" + display_alert "Artifacts to build:" "${artifacts_to_build[*]}" "debug" # For each artifact, try to obtain them from the local cache, remote cache, or build them. # Store info about all artifacts in the process, for later use (eg during package installation in distro-agnostic).