Add telemetry debug/logging and failure report

Enhance post_update_to_api robustness and observability: add debug traces for entry, missing curl, duplicate submissions, DIAGNOSTICS/RANDOM_UUID checks, payload/URL output, and HTTP response code capture; make curl non-blocking and tolerant of failures. Also invoke post_update_to_api on installation failure so build/install errors are reported to telemetry. Includes a small comment glyph fix in build.func. Changes keep telemetry as a silent, best-effort path that won't break script execution.
This commit is contained in:
CanbiZ (MickLesk)
2026-02-09 16:53:25 +01:00
parent ce375b02aa
commit 5aa85ace6a
2 changed files with 31 additions and 7 deletions

View File

@@ -1882,7 +1882,7 @@ advanced_settings() {
fi
;;
# ══════════════<E29590><E29590><EFBFBD>════════════════════════════════════════════════════════════
# ══════════════<E29590><E29590><EFBFBD><EFBFBD>════════════════════════════════════════════════════════════
# STEP 3: Container ID
# ═══════════════════════════════════════════════════════════════════════════
3)
@@ -4014,6 +4014,9 @@ EOF'
if [[ $install_exit_code -ne 0 ]]; then
msg_error "Installation failed in container ${CTID} (exit code: ${install_exit_code})"
# Report failure to telemetry API
post_update_to_api "failed" "$install_exit_code"
# Copy both logs from container before potential deletion
local build_log_copied=false
local install_log_copied=false