mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Expand error logs.
This commit is contained in:
@@ -128,14 +128,17 @@ class Handler extends ExceptionHandler
|
|||||||
*/
|
*/
|
||||||
public function report(Exception $exception)
|
public function report(Exception $exception)
|
||||||
{
|
{
|
||||||
|
|
||||||
$doMailError = env('SEND_ERROR_MESSAGE', true);
|
$doMailError = env('SEND_ERROR_MESSAGE', true);
|
||||||
if (
|
if (
|
||||||
(
|
(
|
||||||
$exception instanceof FireflyException
|
$exception instanceof FireflyException
|
||||||
|| $exception instanceof ErrorException
|
|| $exception instanceof ErrorException
|
||||||
|| $exception instanceof OAuthServerException
|
|| $exception instanceof OAuthServerException
|
||||||
|
|| $exception instanceof AuthenticationException
|
||||||
)
|
)
|
||||||
&& $doMailError) {
|
&& $doMailError) {
|
||||||
|
|
||||||
$userData = [
|
$userData = [
|
||||||
'id' => 0,
|
'id' => 0,
|
||||||
'email' => 'unknown@example.com',
|
'email' => 'unknown@example.com',
|
||||||
@@ -153,6 +156,9 @@ class Handler extends ExceptionHandler
|
|||||||
'line' => $exception->getLine(),
|
'line' => $exception->getLine(),
|
||||||
'code' => $exception->getCode(),
|
'code' => $exception->getCode(),
|
||||||
'version' => config('firefly.version'),
|
'version' => config('firefly.version'),
|
||||||
|
'url' => Request::fullUrl(),
|
||||||
|
'userAgent' => Request::userAgent(),
|
||||||
|
'json' => Request::acceptsJson(),
|
||||||
];
|
];
|
||||||
|
|
||||||
// create job that will mail.
|
// create job that will mail.
|
||||||
|
@@ -24,7 +24,9 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
|
<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>
|
||||||
|
|
||||||
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
|
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
|
||||||
|
@@ -14,6 +14,8 @@ This error occured in file "{{ file }}" on line {{ line }} with code {{ code }}.
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
The IP address related to this error is: {{ ip }}
|
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, you
|
The full stacktrace is below. If you think this is a bug in Firefly III, you
|
||||||
can forward this message to thegrumpydictator@gmail.com. This can help fix
|
can forward this message to thegrumpydictator@gmail.com. This can help fix
|
||||||
|
Reference in New Issue
Block a user