Skip to content

Commit 063824a

Browse files
committed
composer test
1 parent 9c34a06 commit 063824a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/BugsnagServiceProvider.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ private function setupQueueForLaravelVapor(QueueManager $queue)
255255
*/
256256
public function register()
257257
{
258+
echo("DARIA LOG REGISTER!");
258259
$this->app->singleton('bugsnag', function (Container $app) {
259260
$config = $app->config->get('bugsnag');
260261
$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)
501502
*/
502503
protected function setupSessionTracking(Client $client, $endpoint, $events)
503504
{
505+
echo("DARIA SESSION TRACKING");
504506
$client->setAutoCaptureSessions(true);
505507
if (!is_null($endpoint)) {
506508
$client->setSessionEndpoint($endpoint);
@@ -560,9 +562,12 @@ protected function isSessionTrackingAllowed($config)
560562
{
561563
// Session support removed in Lumen 5.3 - only setup automatic session
562564
// tracking if the session function is avaiable
563-
return isset($config['auto_capture_sessions'])
565+
$isAllowed = isset($config['auto_capture_sessions'])
564566
&& $config['auto_capture_sessions']
565567
&& function_exists('session');
568+
echo("DARIA IS SESSION ALLOWED: ");
569+
echo $isAllowed ? 'true' : 'false';
570+
return $isAllowed;
566571
}
567572

568573
/**
@@ -572,6 +577,7 @@ protected function isSessionTrackingAllowed($config)
572577
*/
573578
public function provides()
574579
{
580+
echo("DARIA PROVIDES");
575581
return ['bugsnag', 'bugsnag.tracker', 'bugsnag.logger', 'bugsnag.multi'];
576582
}
577583
}

0 commit comments

Comments
 (0)