From 254c175a7e331947c69794aa7a0248caa47e32f5 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sun, 27 Mar 2011 17:34:15 +0200 Subject: [PATCH 1/1] error_log removed --- web/admin.php | 4 ++-- web/briskin5/Obj/briskin5.phh | 5 ++--- web/briskin5/index_rd.php | 8 +++++++- web/briskin5/statadm.php | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/web/admin.php b/web/admin.php index 6c65f9e..efeb744 100644 --- a/web/admin.php +++ b/web/admin.php @@ -51,7 +51,7 @@ class ImpPoints // error_log("TTOK: ".count($arr), 0); if (count($arr) != 20) { - error_log("COUNT: ".count($arr)); + // error_log("COUNT: ".count($arr)); return FALSE; } @@ -271,4 +271,4 @@ echo "$cont"; - \ No newline at end of file + diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 1d8d0d9..cfac962 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -579,8 +579,7 @@ class Bin5_user extends User { static function load_data($tab_id, $id, $sess) { - // error_log("Bin5_user::load_data BEGIN", 0); - error_log("Bin5_user::load_data BEGIN id [".$id."]", 0); + // error_log("Bin5_user::load_data BEGIN id [".$id."]", 0); log_main("load_data: tab_id [".$tab_id."] id [".$id."] sess [".($sess == FALSE ? "FALSE" : $sess)."] "); @@ -645,7 +644,7 @@ class Bin5_user extends User { $shm = FALSE; // var_dump($user); - error_log("Bin5_user::save_data BEGIN id [".$id."]", 0); + // error_log("Bin5_user::save_data BEGIN id [".$id."]", 0); if (($tok = @ftok(FTOK_PATH."/bin5/table".$tab_id."/user".$id, "B")) == -1) { return (FALSE); diff --git a/web/briskin5/index_rd.php b/web/briskin5/index_rd.php index 6da2eb0..a1cbd56 100644 --- a/web/briskin5/index_rd.php +++ b/web/briskin5/index_rd.php @@ -93,7 +93,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su return (FALSE); } - error_log("maincheck: step di i [".$proxy_step['i']."]", 0); + // error_log("maincheck: step di i [".$proxy_step['i']."]", 0); // log_rd2("M"); /* Sync check (read only without modifications */ @@ -364,6 +364,12 @@ for ($i = 0 ; time() < $endtime ; $i++) { echo '_'; flush(); } + } + +$s = "[".$sess."] briskin5/index_rd.php stats: "; +foreach ($S_load_stat as $key => $value) { + $s .= sprintf("%s: %d - ", $key, $value); } +log_crit($s); ?> diff --git a/web/briskin5/statadm.php b/web/briskin5/statadm.php index c40a2e2..2ece714 100644 --- a/web/briskin5/statadm.php +++ b/web/briskin5/statadm.php @@ -262,7 +262,7 @@ function main_pgsql($curtime) $mtc_sql = sprintf("SELECT * from %sbin5_matches WHERE code = %d", $G_dbpfx, $tmt_obj->code); - error_log($mtc_sql, 0); + // error_log($mtc_sql, 0); if (($mtc_pg = pg_query($bdb->dbconn->db(), $mtc_sql)) == FALSE || pg_numrows($mtc_pg) != 1) { log_crit("statadm: matches row select failed"); break; -- 2.17.1