diff options
Diffstat (limited to 'contrib/logging.hook')
-rwxr-xr-x | contrib/logging.hook | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/contrib/logging.hook b/contrib/logging.hook index b7af62e..82d0ed1 100755 --- a/contrib/logging.hook +++ b/contrib/logging.hook @@ -33,20 +33,14 @@ function report_err { printhl "$*" } -function report_warn { - report_log warning "$*" - # printhl "$*" - checkyesno "$NETCFG_DEBUG" && echo "DEBUG: $*" >&2 -} - - -function report_notify { +function report_notice { report_log notice "$*" # print "$*" >&2 checkyesno "$NETCFG_DEBUG" && echo "DEBUG: $*" >&2 } + function report_debug { if checkyesno "$NETCFG_DEBUG"; then echo "DEBUG: $*" >&2 @@ -56,13 +50,13 @@ function report_debug { } - function report_try { report_log notice "trying $*..." stat_busy "$*" REPORT_TRYING=1 } + function report_fail { if [[ -n "$*" ]]; then report_log err "$*" @@ -79,6 +73,7 @@ function report_fail { fi } + function report_success { if [[ -n "$*" ]]; then stat_append "- $*" |