From fc6f483745f4e6b25b1dc29bbb31f5639849287b Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sun, 8 May 2011 15:24:16 +0200 Subject: [PATCH] some log_lock to log_main to clean log_lock entries and SHUTTA log more understandable --- web/index_rd.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/web/index_rd.php b/web/index_rd.php index d061b0e..fc8aa0c 100644 --- a/web/index_rd.php +++ b/web/index_rd.php @@ -58,10 +58,9 @@ if (DEBUGGING == "local" && $_SERVER['REMOTE_ADDR'] != '127.0.0.1') { function shutta() { - log_rd2("SHUTTA!".connection_status()); + log_rd2("SHUTTA [".connection_status()."] !"); } - register_shutdown_function(shutta); function unrecerror() @@ -141,7 +140,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su Room::save_data($room); unset($room); } - log_lock("U"); + log_main("infolock: U"); Room::unlock_data($sem); ignore_user_abort(FALSE); } // if (($sem = Room::lock_data()) != FALSE) { @@ -155,7 +154,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su } // if ($first_loop == TRUE) { if ($cur_step == $proxy_step['s']) { - log_lock("P"); + log_main("infolock: P"); return (FALSE); } else { @@ -169,7 +168,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su if (($sem = Room::lock_data()) == FALSE) break; - log_lock("P"); + log_main("infolock: P"); $S_load_stat['U_heavy']++; if (($user = User::load_data($proxy_step['i'], $sess)) == FALSE) { break; -- 2.17.1