src/Config.php
public function shouldIgnoreException(\Exception $toLog)
    {
        // get a float in the range [0, 1)
        // mt_rand() is inclusive, so add 1 to mt_randmax
        $floatRand = mt_rand() / ($this->mtRandmax + 1);
        if ($floatRand > $this->exceptionSampleRate($toLog)) {
            // skip
            $this->verboseLogger()->debug("Skip exception due to exception sample rating");
            return true;
        }
        
        return false;
    }
public function shouldIgnoreException(\Exception $toLog)
    {
        // get a float in the range [0, 1)
        // mt_rand() is inclusive, so add 1 to mt_randmax
        $floatRand = mt_rand() / ($this->mtRandmax + 1);
        if ($floatRand > $this->exceptionSampleRate($toLog)) {
            // skip
            $this->verboseLogger()->debug("Skip exception due to exception sample rating");
            return true;
        }
        
        return false;
    }
public function shouldIgnoreException ( \ Exception $ toLog ) { // get a float in the range [0, 1) // mt_rand() is inclusive, so add 1 to mt_randmax $ floatRand = mt_rand ( ) / ( $ this -> mtRandmax + 1 ) ; if ( $ floatRand > $ this -> exceptionSampleRate ( $ toLog ) ) { // skip $ this -> verboseLogger ( ) -> debug ( "Skip exception due to exception sample rating" ) ; return true ; } return false ; }
Check if the exception should be ignored due to configured exception
sample rates.

@param \Exception $toLog

@return bool
Check if the exception should be ignored due to configured exception sample rates .