From 2089e8c1e05995c80a5075308683db60c43d4ad4 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 19 Nov 2024 09:52:38 +0100 Subject: [PATCH] errors --- sh/log.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/log.sh b/sh/log.sh index c938663..e91c3ca 100644 --- a/sh/log.sh +++ b/sh/log.sh @@ -17,13 +17,13 @@ sh_log_debug() { sh_log_error() { if [ "${SH_LOG_LEVEL}" -ge "${SH_LOG_LEVEL_ERROR}" ]; then - echo "[ERROR]" "${@}" + echo "[ERROR]" "${@}" >&2 fi } sh_log_fatal() { if [ "${SH_LOG_LEVEL}" -ge "${SH_LOG_LEVEL_FATAL}" ]; then - echo "[FATAL]" "${@}" + echo "[FATAL]" "${@}" >&2 fi }