public function run()
    {
        $handler = $this;
        $this->setCollapsePaths();

        //Add new panel to debug bar
        $this->addPanel(function ($e) use ($handler) {
            if (!is_null($path = $handler->assetsPath())) {
                $contents = $handler->includeAssets($path);
            }

            if (!is_null($e)) {
                if ($handler->isLoggerEnabled()) {
                    $handler->log($e);
                }

                return [
                    'tab'   => $handler->name,
                    'panel' => '<h1>
                <p class="heading-blue">
                    <a href="http://www.cygniteframework.com">'.$handler->name.' </a>
                </p>
                    </h1>
                    <p> Version : '.Application::version().' </p>
                    <style type="text/css" class="tracy-debug">'.$contents.'</style>',
                ];
            }
        });

        $this->addPanel(function ($e) {
            if (!$e instanceof \PDOException) {
                return;
            }
            if (isset($e->queryString)) {
                $sql = $e->queryString;
            }

            return isset($sql) ? ['tab' => 'SQL', 'panel' => $sql] : null;
        });
    }