From 4c4b26f0987132d06e7b9e54f4fd7d7f736f10c7 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 6 Nov 2021 16:46:05 +0000 Subject: [PATCH] write internal errors to error log --- core/util.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/util.php b/core/util.php index 03f0b63e..4ce3ce0d 100644 --- a/core/util.php +++ b/core/util.php @@ -616,6 +616,7 @@ function _fatal_error(Exception $e): void print("Version: $version (on $phpver)\n"); } else { $q = $query ? "" : "

Query: " . html_escape($query); + error_log("Shimmie Error: $message // $query // {$e->getTraceAsString()}"); header("HTTP/1.0 500 Internal Error"); echo '