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.
This commit is contained in:
2026-07-24 03:27:44 -06:00
parent 51bd6160f3
commit 58520b3567
+1 -5
View File
@@ -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"
}