Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Expand error logs.
James Coledcfea2097381
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.phpindex 45570ef71a..020f131bea 100644--- a/app/Exceptions/Handler.php+++ b/app/Exceptions/Handler.php@@ -128,14 +128,17 @@ class Handler extends ExceptionHandler*/public function report(Exception $exception){+$doMailError = env('SEND_ERROR_MESSAGE', true);if (($exception instanceof FireflyException|| $exception instanceof ErrorException|| $exception instanceof OAuthServerException+ || $exception instanceof AuthenticationException)&& $doMailError) {+$userData = ['id' => 0,'email' => '[email protected]',@@ -153,6 +156,9 @@ class Handler extends ExceptionHandler'line' => $exception->getLine(),'code' => $exception->getCode(),'version' => config('firefly.version'),+ 'url' => Request::fullUrl(),+ 'userAgent' => Request::userAgent(),+ 'json' => Request::acceptsJson(),];// create job that will mail.diff --git a/resources/views/emails/error-html.twig b/resources/views/emails/error-html.twigindex f3126c63e5..0e0f2004f0 100644--- a/resources/views/emails/error-html.twig+++ b/resources/views/emails/error-html.twig@@ -24,7 +24,9 @@</p><p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">- The IP address related to this error is: {{ ip }}+ The IP address related to this error is: {{ ip }}<br />+ URL is: {{ url }}<br>+ User agent: {{ userAgent }}</p><p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">diff --git a/resources/views/emails/error-text.twig b/resources/views/emails/error-text.twigindex 56d4ea7a39..6cc100d81a 100644--- a/resources/views/emails/error-text.twig+++ b/resources/views/emails/error-text.twig@@ -14,6 +14,8 @@ This error occured in file "{{ file }}" on line {{ line }} with code {{ code }}.{% endif %}The IP address related to this error is: {{ ip }}+URL is: {{ url }}+User agent: {{ userAgent }}The full stacktrace is below. If you think this is a bug in Firefly III, youcan forward this message to [email protected]. This can help fix