1 2 3 4 5 6 7
log() { prio="$1" shift if [ "$prio" != debug ] || [ "$debug" = 1 ]; then logger -t "$LOG_TAG" -p "daemon.$prio" -- "$@" fi }