게임 오픈 시 logs에 서브 디렉토리를 사용하도록 변경

This commit is contained in:
2018-06-25 01:45:23 +09:00
parent 6147e207a1
commit 64ff1439b9
7 changed files with 60 additions and 27 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ function Error($message='', $url="")
if (!$url) {
$url = $_SERVER['REQUEST_URI'];
}
file_put_contents(__dir__."/logs/_db_bug.txt", "{\"url\":\"$url\",\"msg\":\"$message\"}\n", FILE_APPEND);
file_put_contents(__dir__."/logs/".UniqueConst::$serverID."/_db_bug.txt", "{\"url\":\"$url\",\"msg\":\"$message\"}\n", FILE_APPEND);
$templates = new \League\Plates\Engine(__dir__.'/templates');