    public function handle($request, Closure $next)
    {
        /** @var \Barryvdh\Debugbar\LaravelDebugbar $debugbar */
        $debugbar = $this->app['debugbar'];
        try {
            return $next($request);
        } catch (\Exception $ex) {
            if (!\Request::ajax()) {
                throw $ex;
            }
            $debugbar->addException($ex);
            $message = $ex instanceof AjaxException
                ? $ex->getContents() : \October\Rain\Exception\ErrorHandler::getDetailedMessage($ex);

            return \Response::make($message, $this->getStatusCode($ex), $debugbar->getDataAsHeaders());
        }

    }

Information written to log files can be of a sensitive nature and give valuable guidance to an attacker or expose sensitive user information.