1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Don't show bot errors in logs

This commit is contained in:
Hillel Coren 2017-09-06 16:45:32 +03:00
parent 7a2b167be1
commit 549e20a57a

View File

@ -49,11 +49,12 @@ class Handler extends ExceptionHandler
return false;
}
if (Crawler::isCrawler()) {
return false;
}
// don't show these errors in the logs
if ($e instanceof NotFoundHttpException) {
if (Crawler::isCrawler()) {
return false;
}
// The logo can take a few seconds to get synced between servers
// TODO: remove once we're using cloud storage for logos
if (Utils::isNinja() && strpos(request()->url(), '/logo/') !== false) {