Log full stacktrace

This commit is contained in:
Hillel Coren 2017-06-05 17:46:31 +03:00
parent af45eaa09a
commit 8f9068ad84

View File

@ -65,7 +65,8 @@ class Handler extends ExceptionHandler
if (Utils::isNinja() && ! Utils::isTravis()) { if (Utils::isNinja() && ! Utils::isTravis()) {
Utils::logError(Utils::getErrorString($e)); 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; return false;
} else { } else {
return parent::report($e); return parent::report($e);