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 }