define(DBG_TRAC, 0x1000);
define(DBG_SHME, 0x2000);
// NOTE: BRISK DEBUG must be a numerical constant, not the result of operations on symbols
-define(BRISK_DEBUG, 0xffffffbf);
+define(BRISK_DEBUG, 0x0800);
define(BRISK_SINGLE_DEBUG,0);
define(BRISK_SINGLE_SESS, "");
}
$out = new DBConn();
-
+
return $out;
}
function db()
log_main("BriskDB create:start");
do {
- if (($dbconn = DBConn::create()) == FALSE)
+ if (($dbconn = DBConn::create()) == FALSE) {
break;
+ }
$ret = new BriskDB($dbconn);
} while (0);
$new_step = $user->step;
} while (0);
- log_mop($user->step, 'bin::index_rd.php: after ret set');
+ log_rd2($user->step, 'bin::index_rd.php: after ret set');
if ($user->the_end == TRUE) {
log_rd2("LOGOUT BYE BYE!!");
echo ' @END@';
log_send("EXT_STEP: ".$ext_step." ENDTIME: [".$endtime."] ".$ret);
mop_flush();
- log_mop(0, 'bin::index_rd.php: after mop_flush (begin: '.sprintf("%f", $pre_main).')');
+ log_rd2(0, 'bin::index_rd.php: after mop_flush (begin: '.sprintf("%f", $pre_main).')');
if ($is_page_streaming)
break;
}
if ($table_idx < 0 || $table_idx >= TABLE_N)
exit;
-log_mop(0, 'bin::index_wr.php: COMM: '.xcapemesg($mesg));
+log_wr(0, 'bin::index_wr.php: COMM: '.xcapemesg($mesg));
$sem = Bin5::lock_data(TRUE, $table_idx);
$argz = explode('|', $mesg);
log_wr('POSTSPLIT: '.$argz[0].' user->stat: ['.$user->stat.']');
-log_mop($user->step, 'bin::index_wr.php: after get_user()');
+log_wr($user->step, 'bin::index_wr.php: after get_user()');
if (false && $argz[0] == 'shutdown') {
log_auth($user_cur->sess, "Shutdown session. delegate to room gc the autologout");
}
log_wr("before save data");
Bin5::save_data($bri);
-log_mop($user->step, 'bin::index_wr.php: after save_data()');
+log_wr($user->step, 'bin::index_wr.php: after save_data()');
Bin5::unlock_data($sem);
exit;
$new_step = $user->step;
} while (0);
- log_mop($user->step, 'index_rd.php: after ret set');
+ log_rd2($user->step, 'index_rd.php: after ret set');
if ($user->the_end == TRUE) {
Room::unlock_data($sem);
echo ' @END@';
log_send("IS_PAGE: ".($is_page_streaming == TRUE ? "TRUE" : "FALSE")."EXT_STEP: ".$ext_step." ENDTIME: [".$endtime."] ".$ret);
mop_flush();
- log_mop(0, 'index_rd.php: after mop_flush (begin: '.sprintf("%f", $pre_main).')');
+ log_rd2(0, 'index_rd.php: after mop_flush (begin: '.sprintf("%f", $pre_main).')');
if ($is_page_streaming)
break;
}
$is_spawn = FALSE;
-log_mop(0, 'index_wr.php: COMM: '.xcapemesg($mesg));
+log_wr(0, 'index_wr.php: COMM: '.xcapemesg($mesg));
log_wr('COMM: '.xcapemesg($mesg));
$curtime = time();
log_wr('POSTSPLIT: '.$argz[0]);
-log_mop($user->step, 'index_wr.php: after get_user()');
+log_wr($user->step, 'index_wr.php: after get_user()');
if ($argz[0] == 'shutdown') {
log_auth($user->sess, "Shutdown session.");
}
log_wr("before save data");
Room::save_data($room);
-log_mop($user->step, 'index_wr.php: after save_data()');
+log_wr($user->step, 'index_wr.php: after save_data()');
Room::unlock_data($sem);
exit;