Skip to content

Commit 8d46138

Browse files
Merge pull request #18 from mbardelmeijer/patch-1
Check the correct token to ensure if we need to register
2 parents f4ad842 + bea1ae8 commit 8d46138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RollbarServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function register()
9191
public function stop()
9292
{
9393
$level = getenv('ROLLBAR_LEVEL') ?: $this->app->config->get('services.rollbar.level', null);
94-
$token = getenv('ROLLBAR_TOKEN') ?: $this->app->config->get('services.rollbar.token', null);
94+
$token = getenv('ROLLBAR_TOKEN') ?: $this->app->config->get('services.rollbar.access_token', null);
9595
$hasToken = empty($token) === false;
9696

9797
return $hasToken === false || $level === 'none';

0 commit comments

Comments
 (0)