changeset 853:047e1c3f811e

Log output revised
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 30 Jun 2020 11:35:00 +0900
parents 3e09ac711f69
children 0d944751ba83
files s4-blog.sh s4-funcs.sh
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/s4-blog.sh	Tue Jun 30 10:55:43 2020 +0900
+++ b/s4-blog.sh	Tue Jun 30 11:35:00 2020 +0900
@@ -1326,6 +1326,7 @@
     echo "日記番号指定が無効です。" | html p
     return
   fi
+  err "blog_reply($$)  Started: `gdate +%S.%03N`"
   blog_writable $rowid $user; rc=$?
   if [ $rc = 0 ]; then
     iswritable=true
@@ -1368,6 +1369,7 @@
       ## END:
       par2table $formdir/article.def
       st=$?
+      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="書込削除"
@@ -1399,6 +1401,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`"
 }
 
 blog_reply_article() {		# Direct link to article in some blog
--- a/s4-funcs.sh	Tue Jun 30 10:55:43 2020 +0900
+++ b/s4-funcs.sh	Tue Jun 30 11:35:00 2020 +0900
@@ -472,7 +472,7 @@
 }
 ismember() {
   # $1=user, $2=group
-err ismem: "select user from grp_mem where gname=$(sqlquote $2) and user='$1';"
+#err ismem: "select user from grp_mem where gname=$(sqlquote $2) and user='$1';"
   test -n "`query \"select user from grp_mem where gname=$(sqlquote \"$2\") and user='$1';\"`"
 }
 isuser() {			# Check if $1 is a valid user
@@ -1513,7 +1513,7 @@
       		## dd bs=$CONTENT_LENGTH count=1 of=$tmpf # NOT working
 		# cat > $tmpf		# too much?
 		head -c $CONTENT_LENGTH > $tmpf	# safe?
-      		(echo CL=$CONTENT_LENGTH; ls -lF $tmpf) 1>&3
+      		err "CONTENT_LENGTH=$CONTENT_LENGTH$nl`ls -lF $tmpf`"
 		s="`cat $tmpf`"
 		;;
   esac
@@ -2348,7 +2348,7 @@
     new10=`DT_SQL="$sql" DT_VIEW=replyblog dumptable html blog`
     cont=`echo "$new10"|grep "^<TR>"|wc -l`
     cont=$((cont-1))
-    err newcount=$cont
+    ##err newcount=$cont
     if [ $cont -gt 0 ]; then
       #echo "全体の新着記事${cont}傑" | html h2
       cgi_radio foldtabs yes 'id="new10" accesskey="f"'

yatex.org