From 8f9068ad8417cf0dccc576bab763ef7c23829541 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 5 Jun 2017 17:46:31 +0300 Subject: [PATCH] Log full stacktrace --- app/Exceptions/Handler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index da6106c19eee..f3bf5fb04967 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -65,7 +65,8 @@ class Handler extends ExceptionHandler if (Utils::isNinja() && ! Utils::isTravis()) { Utils::logError(Utils::getErrorString($e)); - file_put_contents(storage(), $e->getTraceAsString(), FILE_APPEND); + $stacktrace = date('Y-m-d h:i:s') . ' ' . $e->getTraceAsString(); + @file_put_contents(storage_path('logs/stacktrace.log'), $stacktrace, FILE_APPEND); return false; } else { return parent::report($e);