misc: 미활용 함수/상수 제거
This commit is contained in:
@@ -77,12 +77,6 @@ function pushProcessLog($log) {
|
|||||||
pushRawFileLog(__DIR__."/logs/".UniqueConst::$serverID."/_{$date}_processlog.txt", $log);
|
pushRawFileLog(__DIR__."/logs/".UniqueConst::$serverID."/_{$date}_processlog.txt", $log);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function pushStepLog($log) {
|
|
||||||
$date = date('Y_m_d');
|
|
||||||
pushRawFileLog(__DIR__."/logs/".UniqueConst::$serverID."/_{$date}_steplog.txt", $log);
|
|
||||||
}
|
|
||||||
|
|
||||||
function pushLockLog($log) {
|
function pushLockLog($log) {
|
||||||
$date = date('Y_m_d');
|
$date = date('Y_m_d');
|
||||||
pushRawFileLog(__DIR__."/logs/".UniqueConst::$serverID."/_{$date}_locklog.txt", $log);
|
pushRawFileLog(__DIR__."/logs/".UniqueConst::$serverID."/_{$date}_locklog.txt", $log);
|
||||||
@@ -378,8 +372,6 @@ function getGlobalActionLogWithDate(int $year, int $month):array {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function LogHistory($isFirst=0) {
|
function LogHistory($isFirst=0) {
|
||||||
if(STEP_LOG) pushStepLog(TimeUtil::now().', LogHistory Start');
|
|
||||||
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$gameStor = KVStorage::getStorage($db, 'game_env');
|
$gameStor = KVStorage::getStorage($db, 'game_env');
|
||||||
$obj = $gameStor->getValues(['startyear', 'year', 'month']);
|
$obj = $gameStor->getValues(['startyear', 'year', 'month']);
|
||||||
@@ -426,8 +418,6 @@ function LogHistory($isFirst=0) {
|
|||||||
return -($lhs['power']<=>$rhs['power']);
|
return -($lhs['power']<=>$rhs['power']);
|
||||||
});
|
});
|
||||||
|
|
||||||
if(STEP_LOG) pushStepLog(TimeUtil::now().', contents collected');
|
|
||||||
|
|
||||||
$db->insert('ng_history', [
|
$db->insert('ng_history', [
|
||||||
'server_id' => UniqueConst::$serverID,
|
'server_id' => UniqueConst::$serverID,
|
||||||
'year' => $year,
|
'year' => $year,
|
||||||
@@ -438,6 +428,5 @@ function LogHistory($isFirst=0) {
|
|||||||
'nations' => Json::encode($nations),
|
'nations' => Json::encode($nations),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if(STEP_LOG) pushStepLog(TimeUtil::now().', LogHistory Finish');
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,10 +20,6 @@ $loader->addClassMap((function () {
|
|||||||
//디버그용 매크로
|
//디버그용 매크로
|
||||||
ini_set("session.cache_expire", 10080); // minutes
|
ini_set("session.cache_expire", 10080); // minutes
|
||||||
|
|
||||||
// 각종 변수
|
|
||||||
define('STEP_LOG', true);
|
|
||||||
define('PROCESS_LOG', true);
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
// 에러 메세지 출력
|
// 에러 메세지 출력
|
||||||
|
|||||||
Reference in New Issue
Block a user