diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-08-26 15:24:12 +0200 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-08-26 15:24:12 +0200 |
commit | 77458de033ce302d259e95b9a66c525fcf822dfc (patch) | |
tree | 644655795c04ff3f2cbe16b2bf2b48fbda48889f /subr.rtl | |
parent | 66e45aa9c0275f67a6690259e55b3d0bccbd5d0b (diff) | |
download | midipix_build-77458de033ce302d259e95b9a66c525fcf822dfc.tar.bz2 midipix_build-77458de033ce302d259e95b9a66c525fcf822dfc.tar.xz |
Log messages at {info,notice,verbose} and {,-v,-vv}.
Diffstat (limited to 'subr.rtl')
-rw-r--r-- | subr.rtl/rtl_fileop.subr | 2 | ||||
-rw-r--r-- | subr.rtl/rtl_log.subr | 1 | ||||
-rw-r--r-- | subr.rtl/rtl_platform.subr | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/subr.rtl/rtl_fileop.subr b/subr.rtl/rtl_fileop.subr index 53666eaf..d69cead7 100644 --- a/subr.rtl/rtl_fileop.subr +++ b/subr.rtl/rtl_fileop.subr @@ -18,7 +18,7 @@ rtlp_fileop_check() { rtlp_fileop_log() { local _msg="${1}"; if [ "${RTLP_FILEOP_LOG:-0}" -eq 1 ]; then - rtl_log_msg debug "${_msg}"; + rtl_log_msg notice "${_msg}"; fi; }; 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; ;; diff --git a/subr.rtl/rtl_platform.subr b/subr.rtl/rtl_platform.subr index ac411c87..d510254a 100644 --- a/subr.rtl/rtl_platform.subr +++ b/subr.rtl/rtl_platform.subr @@ -86,9 +86,9 @@ rtl_rc() { local _nflag="${1}" _cmd="${2}"; shift 2; case "${_nflag}" in 1) if [ "${#}" -gt 0 ]; then - rtl_log_msg notice "Command line: %s %s" "${_cmd}" "${*}"; + rtl_log_msg verbose "Command line: %s %s" "${_cmd}" "${*}"; else - rtl_log_msg notice "Command line: %s" "${_cmd}"; + rtl_log_msg verbose "Command line: %s" "${_cmd}"; fi; ;; *) "${_cmd}" "${@}"; esac; |