s4

changeset 892:3c9c65ff80f0

Log more information
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 26 Dec 2020 15:17:21 +0900
parents 45771085d097
children c1a5d137740d
files s4-world.sh
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/s4-world.sh	Sat Dec 26 10:10:37 2020 +0900
     1.2 +++ b/s4-world.sh	Sat Dec 26 15:17:21 2020 +0900
     1.3 @@ -169,12 +169,14 @@
     1.4    [ -z "$forceusersync" -a "$syncflag" -nt "$userupdateflag" ] && return
     1.5    if [ -s "$runflag" ]; then
     1.6      limit=`cat $runflag|tr -c -d 0-9`
     1.7 +    err syncaccount: limit=$limit
     1.8      if [ -n "$limit" -a "$limit" -gt `date +%s` ]; then
     1.9        err "World $S4WORLD account sync withholded by process $$"
    1.10        return		# Running sync by other process not leaching timeout
    1.11      fi
    1.12    fi
    1.13    echo $((`date +%s` + 10)) > $runflag	# Setting running flag by timeout 10s
    1.14 +  err syncaccount: setrunflag[$runflag]=`cat $runflag`
    1.15    query<<-EOF
    1.16  	.bail ON
    1.17  	ATTACH DATABASE "$S4MASTERDB" AS m;