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" }