From 58520b3567a6af9dd4d23317f1651ec643ae2f7b Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 24 Jul 2026 03:27:44 -0600 Subject: [PATCH] refactor(log): Remove redundant debug log handling Debug-level logging is handled by the central logging steering function. Remove redundant code in backend plaint-text logging function. --- cfddns.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cfddns.sh b/cfddns.sh index d0f571f..d4cb5a5 100644 --- a/cfddns.sh +++ b/cfddns.sh @@ -120,13 +120,9 @@ writePlainTextLog() { return fi - PT_LOG_LEVEL="$(standardizeLogLevels "$2")" - - ([ "$logDebug" -eq 0 ] && [ "$PT_LOG_LEVEL" = "DEBUG" ]) && return - printf "%s %s %s[%s]: [%s] [%s] %s (%s:%s)\n" \ "$(getTimeStamp)" "$(getHostname)" "$LOG_PROGRAM_NAME" "$$" \ - "$PT_LOG_LEVEL" "$(uppercase "$3")" "$1" "${4:-UNSPECIFIED}" "${5:-0}" \ + "$(standardizeLogLevels "$2")" "$(uppercase "$3")" "$1" "${4:-UNSPECIFIED}" "${5:-0}" \ >>"$logFile" }