Updated locksync log function to create logfile
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user