@@ -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,15 @@ 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 ' ])
564
- && $ config ['auto_capture_sessions ' ]
565
- && function_exists ('session ' );
565
+ echo ("DARIA IS SESSION ALLOWED: \n" );
566
+ $ isSet = isset ($ config ['auto_capture_sessions ' ]);
567
+ $ autoCapture = $ config ['auto_capture_sessions ' ];
568
+ $ funcExist = function_exists ('session ' );
569
+
570
+ echo $ isSet ? 'true ' : 'false ' ;
571
+ echo $ autoCapture ? 'true ' : 'false ' ;
572
+ echo $ funcExist ? 'true ' : 'false ' ;
573
+ return $ isSet && $ autoCapture && $ funcExist ;
566
574
}
567
575
568
576
/**
@@ -572,6 +580,7 @@ protected function isSessionTrackingAllowed($config)
572
580
*/
573
581
public function provides ()
574
582
{
583
+ echo ("DARIA PROVIDES " );
575
584
return ['bugsnag ' , 'bugsnag.tracker ' , 'bugsnag.logger ' , 'bugsnag.multi ' ];
576
585
}
577
586
}
0 commit comments