Skip to content

Commit 734178a

Browse files
committed
Small bug fix for the token getter.
1 parent bf42362 commit 734178a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/RollbarServiceProvider.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function stop() : bool
6666
{
6767
$level = static::config('level');
6868

69-
$token = static::config('token');
69+
$token = static::config('access_token');
7070

7171
$hasToken = empty($token) === false;
7272

@@ -88,10 +88,6 @@ protected static function config($key = '', $default = null)
8888
$envKey = 'ROLLBAR_TOKEN';
8989
}
9090

91-
if ($key === 'token') {
92-
$key = 'access_token';
93-
}
94-
9591
$logKey = empty($key) ? 'logging.channels.rollbar' : "logging.channels.rollbar.$key";
9692

9793
return getenv($envKey) ?: Config::get($logKey, $default);

0 commit comments

Comments
 (0)