Skip to content
Permalink
Browse files

Debugger::exceptionHandler() when connection is aborted, log exception

  • Loading branch information
dg committed Nov 28, 2019
1 parent 6018dc4 commit 9d1c71cde07c12102b9998b599e7c2ac53cf92a9
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Tracy/Debugger/Debugger.php
@@ -302,7 +302,7 @@ public static function exceptionHandler(\Throwable $exception, bool $exit = true
Helpers::improveException($exception);
self::removeOutputBuffers(true);
if (self::$productionMode) {
if (self::$productionMode || connection_aborted()) {
try {
self::log($exception, self::EXCEPTION);
} catch (\Throwable $e) {
@@ -316,7 +316,7 @@ public static function exceptionHandler(\Throwable $exception, bool $exit = true
. (isset($e) ? "Unable to log error.\n" : "Error was logged.\n"));
}
} elseif (!connection_aborted() && (Helpers::isHtmlMode() || Helpers::isAjax())) {
} elseif (Helpers::isHtmlMode() || Helpers::isAjax()) {
self::getBlueScreen()->render($exception);
if (self::$showBar) {
self::getBar()->render();

0 comments on commit 9d1c71c

Please sign in to comment.
You can’t perform that action at this time.