From ca0e881ba5f8c56d45b6633bd848f7e218b47ecf Mon Sep 17 00:00:00 2001 From: nickg Date: Thu, 8 Mar 2018 21:56:21 -0800 Subject: [PATCH] simplify and remove lint problems issue #10 --- log.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/log.sh b/log.sh index d5d9cff..fa03bef 100644 --- a/log.sh +++ b/log.sh @@ -40,18 +40,22 @@ log_tag() { } log_debug() { - log_priority 7 && echoerr "$(log_prefix)" "$(log_tag 7)" "$@" || true + log_priority 7 || return + echoerr "$(log_prefix)" "$(log_tag 7)" "$@" } log_info() { - log_priority 6 && echoerr "$(log_prefix)" "$(log_tag 6)" "$@" || true + log_priority 6 || return + echoerr "$(log_prefix)" "$(log_tag 6)" "$@" } log_err() { - log_priority 3 && echoerr "$(log_prefix)" "$(log_tag 3)" "$@" || true + log_priority 3 || return + echoerr "$(log_prefix)" "$(log_tag 3)" "$@" } # log_crit is for platform problems log_crit() { - log_priority 2 && echoerr "$(log_prefix)" "$(log_tag 2)" "$@" + log_priority 2 || return + echoerr "$(log_prefix)" "$(log_tag 2)" "$@" }