dimanche 9 décembre 2018

Laravel $dontreport not effecting exceptions

im trying to work out why these are still getting send to my logs, im on laravel 5.6 upgraded from 5.5 following the upgrade guide. Im a bit lost as to why this isn't working.

each Exception extends the Exception class,

app/exceptions/handler.php:

protected $dontReport = [
    AddNewToShorlistException::class,
    AddToShorlistException::class,
    ConfirmVoteException::class,
    RemoveFromShortlistException::class,
    UnconfimVoteException::class,
];

config/logging.php

'channels' => [
    'stack'    => [
        'driver'   => 'stack',
        'channels' => [
            'single',
            'sentry',
        ],
    ],
    //....
    'sentry'   => [
        'driver' => 'sentry',
    ],



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire