fix(logger): Fix default subst

Default parameter substitution in all functions was incorrect.
This commit is contained in:
2026-07-22 23:44:08 -06:00
parent f085838781
commit c4d28d1f8c
+4 -4
View File
@@ -91,8 +91,8 @@ writeJsonLog() {
--arg level "$(standardizeLogLevels "$2")" \ --arg level "$(standardizeLogLevels "$2")" \
--arg status "$(uppercase "$3")" \ --arg status "$(uppercase "$3")" \
--arg message "$1" \ --arg message "$1" \
--arg operation "${4:UNSPECIFIED}" \ --arg operation "${4:-UNSPECIFIED}" \
--arg code "${5:999}" \ --arg code "${5:-999}" \
'{"timestamp":$timestamp, "hostname":$hostname, "programName":$pName, "pid":$pid, "level":$level, "status":$status, "message":$message, "operation":$operation, "code":$code}' \ '{"timestamp":$timestamp, "hostname":$hostname, "programName":$pName, "pid":$pid, "level":$level, "status":$status, "message":$message, "operation":$operation, "code":$code}' \
)" )"
@@ -115,8 +115,8 @@ SYSLOG_PID="$$"
PRIORITY="$(translateLogLevelsToJournalD "$2")" PRIORITY="$(translateLogLevelsToJournalD "$2")"
STATUS="$(uppercase "$3")" STATUS="$(uppercase "$3")"
MESSAGE="$1" MESSAGE="$1"
OPERATION="${4:UNSPECIFIED}" OPERATION="${4:-UNSPECIFIED}"
ERRNO="${5:999}" ERRNO="${5:-999}"
end end
return return