From 8540fe16b251726ee81aa84786196af609d73a1e Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 25 Jul 2026 01:10:48 -0600 Subject: [PATCH] fix(log): Disallow multi-logging Make logging options mutually-exclusive to avoid confusion. --- cfddns.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() {