Skip to content

Commit

Permalink
Merge pull request #9 from ekomi-ltd/IT-15080-integrate-bugsnag
Browse files Browse the repository at this point in the history
IT-15080 : Bugsnag integration in polr
  • Loading branch information
amanmukhtar authored Nov 30, 2021
2 parents 3274db6 + 6179ec9 commit c85c076
Show file tree
Hide file tree
Showing 5 changed files with 762 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

## [2.4.6] Date : 30-11-2021

- IT-15080 : Integrate bugsnag in Polr

## [2.4.5] Date : 24-11-2021

- IT-15031 : Change docker base image to fix php version
Expand Down
7 changes: 6 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ class AppServiceProvider extends ServiceProvider
*/
public function register()
{
//
$env = $this->app->environment();

if (in_array($env, ['staging', 'production'])) {
$this->app->alias('bugsnag.logger', \Illuminate\Contracts\Logging\Log::class);
$this->app->alias('bugsnag.logger', \Psr\Log\LoggerInterface::class);
}
}
}
1 change: 1 addition & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
|
*/

$app->register(Bugsnag\BugsnagLaravel\BugsnagServiceProvider::class);
$app->register(App\Providers\AppServiceProvider::class);
$app->register(\Yajra\Datatables\DatatablesServiceProvider::class);
$app->register(\Torann\GeoIP\GeoIPServiceProvider::class);
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"geoip2/geoip2": "^2.4",
"nesbot/carbon": "^1.22",
"doctrine/dbal": "^2.5",
"arvenil/ninja-mutex": "0.6.0"
"arvenil/ninja-mutex": "0.6.0",
"bugsnag/bugsnag-laravel": "^2.0"
},
"require-dev": {
"fzaninotto/faker": "~1.0",
Expand Down
Loading

0 comments on commit c85c076

Please sign in to comment.