Updated locksync log function to create logfile

This commit is contained in:
2026-02-28 18:07:31 -06:00
parent 60ed643580
commit c1dea85bed

View File

@@ -7,6 +7,7 @@ export LOG_FILE="/recalbox/share/system/logs/locksync.log"
log() {
# $1 = level
# $2 = message
touch "$LOG_FILE"
printf "[%s] [%s] %s\n" "$(date '+%Y-%m-%d %H:%M:%S')" "$1" "$2" >>"$LOG_FILE"
}