mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Log full stacktrace
This commit is contained in:
parent
af45eaa09a
commit
8f9068ad84
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user