mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 12:00:57 -04:00
Rename log file
This commit is contained in:
parent
3137b307ff
commit
c6f7de605e
@ -61,7 +61,7 @@ class Handler extends ExceptionHandler
|
|||||||
}
|
}
|
||||||
// Log 404s to a separate file
|
// Log 404s to a separate file
|
||||||
$errorStr = date('Y-m-d h:i:s') . ' ' . request()->url() . "\n" . json_encode(Utils::prepareErrorData('PHP')) . "\n\n";
|
$errorStr = date('Y-m-d h:i:s') . ' ' . request()->url() . "\n" . json_encode(Utils::prepareErrorData('PHP')) . "\n\n";
|
||||||
@file_put_contents(storage_path('logs/not_found.log'), $errorStr, FILE_APPEND);
|
@file_put_contents(storage_path('logs/not-found.log'), $errorStr, FILE_APPEND);
|
||||||
return false;
|
return false;
|
||||||
} elseif ($e instanceof HttpResponseException) {
|
} elseif ($e instanceof HttpResponseException) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user