diff --git a/cfddns.sh b/cfddns.sh index 0419c4c..b849d70 100644 --- a/cfddns.sh +++ b/cfddns.sh @@ -131,7 +131,7 @@ writeJsonLog() { --arg message "$1" \ --arg operation "${4:-UNSPECIFIED}" \ --arg code "${5:-0}" \ - '{"timestamp":$timestamp, "hostname":$hostname, "programName":$pName, "pid":$pid, "level":$level, "status":$status, "message":$message, "operation":$operation, "code":$code}' \ + '{"@t":$timestamp, "@m":$message, "@l":$level, "hostname":$hostname, "programName":$pName, "pid":$pid, "status":$status, "operation":$operation, "code":$code}' \ )" printf "%s\n" "$JSON_PROPS" >>"$logFile"