mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 19:04:41 -04:00
Don't show bot errors in logs
This commit is contained in:
parent
7a2b167be1
commit
549e20a57a
@ -49,11 +49,12 @@ class Handler extends ExceptionHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Crawler::isCrawler()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// don't show these errors in the logs
|
// don't show these errors in the logs
|
||||||
if ($e instanceof NotFoundHttpException) {
|
if ($e instanceof NotFoundHttpException) {
|
||||||
if (Crawler::isCrawler()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
// The logo can take a few seconds to get synced between servers
|
// The logo can take a few seconds to get synced between servers
|
||||||
// TODO: remove once we're using cloud storage for logos
|
// TODO: remove once we're using cloud storage for logos
|
||||||
if (Utils::isNinja() && strpos(request()->url(), '/logo/') !== false) {
|
if (Utils::isNinja() && strpos(request()->url(), '/logo/') !== false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user