error_log removed
[brisk.git] / web / briskin5 / index_rd.php
index c027921..a1cbd56 100644 (file)
@@ -28,6 +28,12 @@ require_once("../Obj/brisk.phh");
 // require_once("../Obj/proxyscan.phh");
 require_once("Obj/briskin5.phh");
 
+$S_load_stat = array( 'U_first_loop' => 0,
+                      'U_heavy'      => 0,
+                      'R_garbage'    => 0,
+                      'R_minusone'   => 0,
+                      'R_the_end'    => 0 );
+
 // Use of proxies isn't allowed.
 // if (is_proxy()) {
 //   sleep(5);
@@ -87,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 */
@@ -358,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);
 
 ?>