diff --git a/cfddns.sh b/cfddns.sh index 482b1ca..03edf36 100644 --- a/cfddns.sh +++ b/cfddns.sh @@ -207,9 +207,9 @@ writeLog() { PT_LOG_LEVEL="$(standardizeLogLevels "$2")" ([ "$logDebug" -eq 0 ] && [ "$PT_LOG_LEVEL" = "DEBUG" ]) && return - ([ "$logToJournal" -eq 1 ]) && writeJournalDLog "$@" - ([ "$useJsonLogFmt" -eq 1 ]) && writeJsonLog "$@" - ([ "$useSyslogLogFmt" -eq 1 ]) && writePlainTextLog "$@" + ([ "$logToJournal" -eq 1 ]) && writeJournalDLog "$@" && return + ([ "$useJsonLogFmt" -eq 1 ]) && writeJsonLog "$@" && return + ([ "$useSyslogLogFmt" -eq 1 ]) && writePlainTextLog "$@" && return } scriptExamples() {