From dc6a35d6564d08aa6e7ef820e4b223cf0cb93fb1 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 21 Apr 2019 01:47:01 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=90=EB=9F=AC=20=EB=B0=98=ED=99=98=20?= =?UTF-8?q?=ED=83=80=EC=9E=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hwe/lib.php b/hwe/lib.php index 5ba3a90d..70f0c028 100644 --- a/hwe/lib.php +++ b/hwe/lib.php @@ -33,7 +33,8 @@ function Error($message='', $url="") if (!$url) { $url = $_SERVER['REQUEST_URI']; } - file_put_contents(__dir__."/logs/".UniqueConst::$serverID."/_db_bug.txt", "{\"url\":\"$url\",\"msg\":\"$message\"}\n", FILE_APPEND); + $e = new \Exception(); + logError("aux_err", $message, getExceptionTraceAsString($e)); $templates = new \League\Plates\Engine(__dir__.'/templates');