sh_log
This commit is contained in:
parent
69dac56a26
commit
eaaa9662cd
1 changed files with 2 additions and 0 deletions
|
@ -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]" "${@}"
|
||||||
|
|
Loading…
Reference in a new issue