mqtt fuckiness

This commit is contained in:
2026-02-27 19:48:51 -06:00
parent d14df72f5e
commit cfed476096
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ log() {
timestamp=$(date '+%Y-%m-%d %H:%M:%S')
local log_line="[$timestamp] [$level] $msg"
mosquitto_pub -h 127.0.0.1 -p 1883 -t "$TOPIC" "SaveLog=${log_line}"
mosquitto_pub -h 127.0.0.1 -p 1883 -t "$TOPIC" "SaveLog='${log_line}'"
# printf "%s\n" "$log_line" >> "$LOG_FILE" 2>/dev/null
[ "$DEBUG_MODE" -eq 1 ] && printf "%s\n" "$log_line"