summaryrefslogtreecommitdiffhomepage
path: root/subr.rtl/rtl_log.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-08-26 15:24:12 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-08-26 15:24:12 +0200
commit77458de033ce302d259e95b9a66c525fcf822dfc (patch)
tree644655795c04ff3f2cbe16b2bf2b48fbda48889f /subr.rtl/rtl_log.subr
parent66e45aa9c0275f67a6690259e55b3d0bccbd5d0b (diff)
downloadmidipix_build-77458de033ce302d259e95b9a66c525fcf822dfc.tar.bz2
midipix_build-77458de033ce302d259e95b9a66c525fcf822dfc.tar.xz
Log messages at {info,notice,verbose} and {,-v,-vv}.
Diffstat (limited to 'subr.rtl/rtl_log.subr')
-rw-r--r--subr.rtl/rtl_log.subr1
1 files changed, 1 insertions, 0 deletions
diff --git a/subr.rtl/rtl_log.subr b/subr.rtl/rtl_log.subr
index b91d1374..cc692795 100644
--- a/subr.rtl/rtl_log.subr
+++ b/subr.rtl/rtl_log.subr
@@ -53,6 +53,7 @@ rtl_log_env_vars() {
rtl_log_msg() {
local _lvl="${1}" _fmt="${2}" _attr=""; shift 2;
case "${RTLP_LOG_LVL:-0}" in
+ -1) rtl_lmatch "info notice verbose debug" "${_lvl}" && return; ;;
0) rtl_lmatch "notice verbose debug" "${_lvl}" && return; ;;
1) rtl_lmatch "verbose debug" "${_lvl}" && return; ;;
2) rtl_lmatch "debug" "${_lvl}" && return; ;;