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');