diff --git a/misc/build.func b/misc/build.func index 16d36a9f..0a0d2797 100644 --- a/misc/build.func +++ b/misc/build.func @@ -1229,7 +1229,7 @@ EOF label="$(basename "$dev_render")" [[ -e "$card" ]] && label+=" + $(basename "$card")" label+=" – $name" - echo "[VAAPI DEBUG] Adding VAAPI combo: ${combo_devices[*]} ($label)" + msg_debug "[VAAPI DEBUG] Adding VAAPI combo: ${combo_devices[*]} ($label)" VAAPI_DEVICES+=("$( IFS=: @@ -1247,7 +1247,7 @@ EOF if [[ "${#VAAPI_DEVICES[@]}" -eq 0 ]]; then msg_warn "No VAAPI-compatible devices found." elif [[ "${#VAAPI_DEVICES[@]}" -eq 3 ]]; then - msg_info "Only one VAAPI-compatible device found – enabling passthrough." + #msg_info "Only one VAAPI-compatible device found – enabling passthrough." IFS=":" read -ra devices <<<"${VAAPI_DEVICES[0]//\"/}" IDX=0 @@ -1309,7 +1309,7 @@ such as 'intel-media-driver', 'libva2', or 'vainfo'." 15 74 dev="${dev%\"}" dev="${dev#\"}" # strip quotes IFS=":" read -ra devices <<<"$dev" - echo "[VAAPI DEBUG] Autopassthrough for devices: ${devices[*]}" + msg_debug "[VAAPI DEBUG] Autopassthrough for devices: ${devices[*]}" for d in "${devices[@]}"; do if [[ "$CT_TYPE" == "0" ]]; then if [[ "$DID_MOUNT_DRI" -eq 0 && -d /dev/dri ]]; then diff --git a/misc/core.func b/misc/core.func index 04d8528f..42ee17b6 100644 --- a/misc/core.func +++ b/misc/core.func @@ -392,6 +392,12 @@ msg_custom() { echo -e "${BFR:-} ${symbol} ${color}${msg}${CL:-\e[0m}" } +function msg_debug() { + if [[ "${var_full_verbose:-0}" == "1" ]]; then + echo -e "${DGY}[$(date '+%F %T')] [DEBUG]${CL} $*" + fi +} + run_container_safe() { local ct="$1" shift