diff --git a/Factories/RollbarHandlerFactory.php b/Factories/RollbarHandlerFactory.php index 852bdb8..5525016 100755 --- a/Factories/RollbarHandlerFactory.php +++ b/Factories/RollbarHandlerFactory.php @@ -31,10 +31,8 @@ public function __construct(ContainerInterface $container) if (!empty($config['person_fn']) && is_callable($config['person_fn'])) { $config['person'] = null; } else { - if (empty($config['person'])) { - - $config['person_fn'] = function() use ($container) { + $config['person_fn'] = function () use ($container) { try { $token = $container->get('security.token_storage')->getToken(); @@ -49,9 +47,7 @@ public function __construct(ContainerInterface $container) // Ignore } }; - } - } Rollbar::init($config, false, false, false);