@@ -255,6 +255,7 @@ private function setupQueueForLaravelVapor(QueueManager $queue)
255
255
*/
256
256
public function register ()
257
257
{
258
+ echo ("DARIA LOG REGISTER! " );
258
259
$ this ->app ->singleton ('bugsnag ' , function (Container $ app ) {
259
260
$ config = $ app ->config ->get ('bugsnag ' );
260
261
$ 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)
501
502
*/
502
503
protected function setupSessionTracking (Client $ client , $ endpoint , $ events )
503
504
{
505
+ echo ("DARIA SESSION TRACKING " );
504
506
$ client ->setAutoCaptureSessions (true );
505
507
if (!is_null ($ endpoint )) {
506
508
$ client ->setSessionEndpoint ($ endpoint );
@@ -560,9 +562,12 @@ protected function isSessionTrackingAllowed($config)
560
562
{
561
563
// Session support removed in Lumen 5.3 - only setup automatic session
562
564
// tracking if the session function is avaiable
563
- return isset ($ config ['auto_capture_sessions ' ])
565
+ $ isAllowed = isset ($ config ['auto_capture_sessions ' ])
564
566
&& $ config ['auto_capture_sessions ' ]
565
567
&& function_exists ('session ' );
568
+ echo ("DARIA IS SESSION ALLOWED: " );
569
+ echo ($ isAllowed );
570
+ return $ isAllowed ;
566
571
}
567
572
568
573
/**
@@ -572,6 +577,7 @@ protected function isSessionTrackingAllowed($config)
572
577
*/
573
578
public function provides ()
574
579
{
580
+ echo ("DARIA PROVIDES " );
575
581
return ['bugsnag ' , 'bugsnag.tracker ' , 'bugsnag.logger ' , 'bugsnag.multi ' ];
576
582
}
577
583
}
0 commit comments