Mercurial > hgrepos > hgweb.cgi > s4
changeset 885:4c02a9f862d7
Prefix process id in all log entries
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 17 Dec 2020 07:36:56 +0900 |
parents | 4e755437dbcb |
children | 99187e4ad69b |
files | s4-blog.sh s4-funcs.sh s4-world.sh |
diffstat | 3 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-blog.sh Thu Dec 17 07:34:51 2020 +0900 +++ b/s4-blog.sh Thu Dec 17 07:36:56 2020 +0900 @@ -1402,7 +1402,7 @@ echo "日記番号指定が無効です。" | html p return fi - err "blog_reply($$) Started: `gdate +%S.%03N` blogrowid=$rowid" + err "blog_reply Started: `gdate +%S.%03N` blogrowid=$rowid" blog_writable $rowid $user; rc=$? if [ $rc = 0 ]; then iswritable=true @@ -1445,7 +1445,7 @@ ## END: par2table $formdir/article.def st=$? - err "blog_reply($$): POSTdone `gdate +%S.%03N` - st=$st title=$title owner=$owner user=$user, blogid=$blogid" + err "blog_reply: POSTdone `gdate +%S.%03N` - st=$st title=$title owner=$owner user=$user, blogid=$blogid" case $st in 0|4) [ "$st" = "4" ] && act="書込削除" @@ -1477,7 +1477,7 @@ -D_FORM_='' \ -D_DUMPTABLE_="syscmd(cat)" -D_DUMPHEAD_="" \ $layout/html.m4.html $layout/form+dump-whead.m4.html - err "blog_reply($$) Finished: `gdate +%S.%03N` user=$user owner=[$owner] title=[$title]" + err "blog_reply Finished: `gdate +%S.%03N` user=$user owner=[$owner] title=[$title]" } blog_reply_article() { # Direct link to article in some blog
--- a/s4-funcs.sh Thu Dec 17 07:34:51 2020 +0900 +++ b/s4-funcs.sh Thu Dec 17 07:36:56 2020 +0900 @@ -88,7 +88,7 @@ iconcachekey="profimgcache_S" # Start debug logging -logtag="${S4WORLD:+{$S4WORLD\}}" +logtag="[$$]${S4WORLD:+{$S4WORLD\}}" exec 3>> $logdir/debug.out err() { echo "[`date +%F-%T%z`]$logtag $@" 1>&3
--- a/s4-world.sh Thu Dec 17 07:34:51 2020 +0900 +++ b/s4-world.sh Thu Dec 17 07:36:56 2020 +0900 @@ -77,7 +77,7 @@ return -4 fi fi - err "`gdate +%S.%3N` Starting account synchronization[$$]" + err "`gdate +%S.%3N` Starting account synchronization" prevsync=`tail -1 $syncflag|colrm 20` # 2020-06-21 12:30:00 = 19cols syncall=${db%.*}.syncall @@ -139,10 +139,10 @@ EOF ) if [ -n "$num" -a "$num" -eq 0 ]; then - err "`gdate +%S.%3N` Account synchronization[$$] done in difference $num" + err "`gdate +%S.%3N` Account synchronization done in difference $num" echo "`date '+%F %T'`: Sync done by process $$" >> $syncflag else - err "Account synch[$$] failed or bailed with num=[$num]" + err "Account synch failed or bailed with num=[$num]" fi return $num }