This commit is contained in:
Marc Beninca 2024-11-18 12:17:47 +01:00
parent 69dac56a26
commit eaaa9662cd
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -7,6 +7,8 @@ SH_LOG_LEVEL_TRACE=5
SH_LOG_LEVEL=${SH_LOG_LEVEL_INFO} SH_LOG_LEVEL=${SH_LOG_LEVEL_INFO}
sh_log() { sh_log_info "${@}"; }
sh_log_debug() { sh_log_debug() {
if [ "${SH_LOG_LEVEL}" -ge "${SH_LOG_LEVEL_DEBUG}" ]; then if [ "${SH_LOG_LEVEL}" -ge "${SH_LOG_LEVEL_DEBUG}" ]; then
echo "[DEBUG]" "${@}" echo "[DEBUG]" "${@}"