private function filterTrace($trace)
    {
        $ignore = 'app/Services/Database.php';
        $j = strlen($ignore);
        foreach ($trace as $i => $entry) {
            if (isset($entry['file'])) {
                $s = $this->stripFile($entry['file']);
                if (substr($s, 0, $j) == $ignore) {
                    unset($trace[$i]);
                }
            }
        }

        return $trace;
    }