diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-08-26 15:39:08 +0200 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-08-26 15:39:08 +0200 |
commit | 8a9cf32e8e55307ae4df3fb1ad17280c7ab0c28b (patch) | |
tree | 925b7a9d0d3e5dd3337e716f3aabd5374b50f1ed /subr.rtl | |
parent | 7ee990ff728753741911935a4eb499559737a214 (diff) | |
download | midipix_build-8a9cf32e8e55307ae4df3fb1ad17280c7ab0c28b.tar.bz2 midipix_build-8a9cf32e8e55307ae4df3fb1ad17280c7ab0c28b.tar.xz |
{build,pkgtool}.sh: log environment variables at "notice" level.
subr.rtl/rtl_log.subr:${RTL_LOG_MSG_{NOTICE,VERBOSE}_COLOUR}: swap.
Diffstat (limited to 'subr.rtl')
-rw-r--r-- | subr.rtl/rtl_log.subr | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/subr.rtl/rtl_log.subr b/subr.rtl/rtl_log.subr index cc692795..3e55ab85 100644 --- a/subr.rtl/rtl_log.subr +++ b/subr.rtl/rtl_log.subr @@ -33,17 +33,17 @@ RTL_LOG_MSG_SUCCESS_COLOUR=33; # Dark yellow RTL_LOG_MSG_SUCCESS_END_COLOUR=32; # Dark green RTL_LOG_MSG_INFO_COLOUR=93; # Bright yellow RTL_LOG_MSG_INFO_END_COLOUR=92; # Bright green -RTL_LOG_MSG_NOTICE_COLOUR=96; # Bright cyan -RTL_LOG_MSG_VERBOSE_COLOUR=90; # Dark grey +RTL_LOG_MSG_NOTICE_COLOUR=90; # Dark grey +RTL_LOG_MSG_VERBOSE_COLOUR=96; # Bright cyan RTL_LOG_MSG_DEBUG_COLOUR=36; # Dark cyan rtl_log_env_vars() { - local _arg_len_max=0; - rtl_log_msg info "Variables for this ${1:-build}:"; shift; + local _level="${1}" _type="${2}" _arg_len_max=0; shift 2; + rtl_log_msg "${_level}" "Variables for this ${_type}:"; _arg_len_max="$(rtl_lmax "${@}")"; while [ "${#}" -gt 0 ]; do - rtl_log_msg info \ + rtl_log_msg "${_level}" \ "%${_arg_len_max}.${_arg_len_max}s=%s" \ "${1%%=*}" "$(rtl_get_var_unsafe "${1#*=}")"; shift; |