Skip to content

Commit fecb087

Browse files
GrahamCampbellkattrali
authored andcommitted
Fix the app type getting overwritten (#196)
1 parent a8e6dd6 commit fecb087

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"php": ">=5.5",
1515
"illuminate/contracts": "^5.0",
1616
"illuminate/support": "^5.0",
17-
"bugsnag/bugsnag": "^3.2",
17+
"bugsnag/bugsnag": "^3.4",
1818
"bugsnag/bugsnag-psr-logger": "^1.1"
1919
},
2020
"require-dev": {

src/BugsnagServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected function setupQueue(QueueManager $queue)
140140
}
141141

142142
$queue->before(function (JobProcessing $event) {
143-
$this->app->bugsnag->setAppType('Queue');
143+
$this->app->bugsnag->setFallbackType('Queue');
144144

145145
$job = [
146146
'name' => $event->job->getName(),
@@ -196,7 +196,7 @@ public function register()
196196
$client->setStripPath($app->basePath());
197197
$client->setProjectRoot($app->path());
198198
$client->setReleaseStage($app->environment());
199-
$client->setAppType($app->runningInConsole() ? 'Console' : 'HTTP');
199+
$client->setFallbackType($app->runningInConsole() ? 'Console' : 'HTTP');
200200

201201
$client->setNotifier([
202202
'name' => 'Bugsnag Laravel',

0 commit comments

Comments
 (0)