mqtt fuckiness
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user