From 77458de033ce302d259e95b9a66c525fcf822dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Thu, 26 Aug 2021 15:24:12 +0200 Subject: Log messages at {info,notice,verbose} and {,-v,-vv}. --- subr.rtl/rtl_log.subr | 1 + 1 file changed, 1 insertion(+) (limited to 'subr.rtl/rtl_log.subr') 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; ;; -- cgit v1.2.3