File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class RollbarServiceProvider extends ServiceProvider
20
20
public function boot ()
21
21
{
22
22
// Don't boot rollbar if it is not configured.
23
- if ($ this ->stopRegistration () === true ) {
23
+ if ($ this ->stop () === true ) {
24
24
return ;
25
25
}
26
26
@@ -51,7 +51,7 @@ public function boot()
51
51
public function register ()
52
52
{
53
53
// Don't register rollbar if it is not configured.
54
- if ($ this ->stopRegistration () === true ) {
54
+ if ($ this ->stop () === true ) {
55
55
return ;
56
56
}
57
57
@@ -88,11 +88,12 @@ public function register()
88
88
*
89
89
* @return boolean
90
90
*/
91
- public function stopRegistration ()
91
+ public function stop ()
92
92
{
93
+ $ level = strtolower (getenv ('ROLLBAR_LEVEL ' ));
93
94
$ hasToken = !empty (getenv ('ROLLBAR_TOKEN ' ));
94
95
$ hasConfig = $ this ->app ['config ' ]->has ('services.rollbar ' );
95
96
96
- return $ hasToken === false && $ hasConfig === false ;
97
+ return $ level == ' none ' || $ hasToken === false && $ hasConfig === false ;
97
98
}
98
99
}
You can’t perform that action at this time.
0 commit comments