fix: route log output to stdout for SSH visibility

All log_* functions were writing to stderr, causing output to be
invisible in SSH sessions where stderr is not forwarded or captured.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-05 22:33:43 +02:00
parent 8b4fa0dcb1
commit a4f1ba443d
+6 -6
View File
@@ -43,29 +43,29 @@ declare -g -A ARTY_INSTALL_STACK
# Logging functions # Logging functions
log_info() { log_info() {
echo -e "${BLUE}[INFO]${NC} $1" >&2 echo -e "${BLUE}[INFO]${NC} $1"
} }
log_success() { log_success() {
echo -e "${GREEN}[ok]${NC} $1" >&2 echo -e "${GREEN}[ok]${NC} $1"
} }
log_warn() { log_warn() {
echo -e "${YELLOW}[!]${NC} $1" >&2 echo -e "${YELLOW}[!]${NC} $1"
} }
log_error() { log_error() {
echo -e "${RED}[x]${NC} $1" >&2 echo -e "${RED}[x]${NC} $1"
} }
log_debug() { log_debug() {
if [[ "$ARTY_VERBOSE" == "1" ]]; then if [[ "$ARTY_VERBOSE" == "1" ]]; then
echo -e "${CYAN}[DEBUG]${NC} $1" >&2 echo -e "${CYAN}[DEBUG]${NC} $1"
fi fi
} }
log_step() { log_step() {
echo -e "${CYAN}[!]${NC} $1" >&2 echo -e "${CYAN}[!]${NC} $1"
} }
# ============================================================================ # ============================================================================