mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
limit logging conditionally
This commit is contained in:
parent
6e813e233e
commit
40dc8efd46
@ -94,7 +94,9 @@ class Handler extends ExceptionHandler
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(config('ninja.expanded_logging'))
|
||||||
parent::report($exception);
|
parent::report($exception);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function validException($exception)
|
private function validException($exception)
|
||||||
@ -105,7 +107,7 @@ class Handler extends ExceptionHandler
|
|||||||
if (strpos($exception->getMessage(), 'Permission denied') !== false)
|
if (strpos($exception->getMessage(), 'Permission denied') !== false)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (strpos($exception->getMessage(), 'flock()') !== false)
|
if (strpos($exception->getMessage(), 'flock') !== false)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (strpos($exception->getMessage(), 'expects parameter 1 to be resource') !== false)
|
if (strpos($exception->getMessage(), 'expects parameter 1 to be resource') !== false)
|
||||||
@ -114,6 +116,8 @@ class Handler extends ExceptionHandler
|
|||||||
if (strpos($exception->getMessage(), 'fwrite()') !== false)
|
if (strpos($exception->getMessage(), 'fwrite()') !== false)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if(strpos($exception->getMessage()), 'LockableFile' !== false)
|
||||||
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user