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:
parent
7a2b167be1
commit
549e20a57a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user