Skip to content

Commit

Permalink
fixs lints for issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed Mar 8, 2018
1 parent 5ffdbf5 commit fe3b736
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# by default prints the script name ($0)
log_prefix() {
echo $0
echo "$0"
}

# default priority
Expand All @@ -26,18 +26,18 @@ log_priority() {
}

log_debug() {
log_priority 7 && echoerr $(log_prefix) "DEBUG" $@
log_priority 7 && echoerr "$(log_prefix)" "DEBUG" "$@"
}

log_info() {
log_priority 6 && echoerr $(log_prefix) "INFO" $@
log_priority 6 && echoerr "$(log_prefix)" "INFO" "$@"
}

log_err() {
log_priority 3 && echoerr $(log_prefix) "ERR" $@
log_priority 3 && echoerr "$(log_prefix)" "ERR" "$@"
}

# log_crit is for platform problems
log_crit() {
log_priority 2 && echoerr $(log_prefix) "CRIT" $@
log_priority 2 && echoerr "$(log_prefix)" "CRIT" "$@"
}

0 comments on commit fe3b736

Please sign in to comment.