don't log error thrown in ThreadProcessor.php:349, just abort

This commit is contained in:
jmechnich 2021-06-11 19:05:04 +02:00
parent 2df50d9096
commit 0a13540e23

View File

@ -22,6 +22,7 @@ namespace Mibew\RequestProcessor;
// Import namespaces and classes of the core
use Mibew\Database;
use Mibew\EventDispatcher\EventDispatcher;
use Mibew\Http\Exception\AccessDeniedException;
use Mibew\RequestProcessor\Exception\AbstractProcessorException;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
@ -240,6 +241,9 @@ abstract class AbstractProcessor
return $this->buildSyncResponses($this->responses);
}
}
} catch (AccessDeniedException $e) {
// don't log exception thrown in ThreadProcessor
return false;
} catch (\Exception $e) {
// Something went wrong. Trigger error event
$vars = array('exception' => $e);