diff --git a/src/BugsnagServiceProvider.php b/src/BugsnagServiceProvider.php index c34a0c9..3e95185 100644 --- a/src/BugsnagServiceProvider.php +++ b/src/BugsnagServiceProvider.php @@ -255,6 +255,7 @@ private function setupQueueForLaravelVapor(QueueManager $queue) */ public function register() { + echo("DARIA LOG REGISTER!"); $this->app->singleton('bugsnag', function (Container $app) { $config = $app->config->get('bugsnag'); $client = new Client(new Configuration($config['api_key']), new LaravelResolver($app), $this->getGuzzle($config)); @@ -501,6 +502,7 @@ protected function setupPaths(Client $client, Container $app, array $config) */ protected function setupSessionTracking(Client $client, $endpoint, $events) { + echo("DARIA SESSION TRACKING"); $client->setAutoCaptureSessions(true); if (!is_null($endpoint)) { $client->setSessionEndpoint($endpoint); @@ -560,9 +562,12 @@ protected function isSessionTrackingAllowed($config) { // Session support removed in Lumen 5.3 - only setup automatic session // tracking if the session function is avaiable - return isset($config['auto_capture_sessions']) + $isAllowed = isset($config['auto_capture_sessions']) && $config['auto_capture_sessions'] && function_exists('session'); + echo("DARIA IS SESSION ALLOWED: "); + echo $isAllowed ? 'true' : 'false'; + return $isAllowed; } /** @@ -572,6 +577,7 @@ protected function isSessionTrackingAllowed($config) */ public function provides() { + echo("DARIA PROVIDES"); return ['bugsnag', 'bugsnag.tracker', 'bugsnag.logger', 'bugsnag.multi']; } }