Better logging
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
. /recalbox/share/system/configs/savesync/savesync.conf
|
. /recalbox/share/system/configs/savesync/savesync.conf
|
||||||
|
|
||||||
log() {
|
log() {
|
||||||
mosquitto_pub -h 127.0.0.1 -p 1883 -q 0 -t "$LOG_TOPIC" -m "SaveLog=[$(date '+%H:%M:%S')] [DAEMON] $1" 2>/dev/null
|
mosquitto_pub -h 127.0.0.1 -p 1883 -q 0 -t "$LOG_TOPIC" -m "SaveLog=[$(date '+%H:%M:%S')] [DAEMON] [$1] $2" 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
log "INFO" "--- Daemon Active ---"
|
log "INFO" "--- Daemon Active ---"
|
||||||
|
|||||||
Reference in New Issue
Block a user