From e96998d6afd4984f78f9abc5a754e63953ccd5d3 Mon Sep 17 00:00:00 2001 From: Alex Moinet Date: Thu, 10 Jan 2019 08:52:43 +0000 Subject: [PATCH 1/2] Multiple app['event'] dispatches: Remove duplicate dispatcher from Bugsnag MultiLogger --- src/BugsnagServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BugsnagServiceProvider.php b/src/BugsnagServiceProvider.php index 144fb7cd..2f8deb53 100644 --- a/src/BugsnagServiceProvider.php +++ b/src/BugsnagServiceProvider.php @@ -238,7 +238,7 @@ public function register() }); $this->app->singleton('bugsnag.multi', function (Container $app) { - return interface_exists(Log::class) ? new MultiLogger([$app['log'], $app['bugsnag.logger']], $app['events']) : new BaseMultiLogger([$app['log'], $app['bugsnag.logger']]); + return interface_exists(Log::class) ? new MultiLogger([$app['log'], $app['bugsnag.logger']]) : new BaseMultiLogger([$app['log'], $app['bugsnag.logger']]); }); if ($this->app['log'] instanceof LogManager) { From 8d2109c607fc0db284626a6f38bc25459ce957b7 Mon Sep 17 00:00:00 2001 From: Alex Moinet Date: Mon, 14 Jan 2019 10:24:17 +0000 Subject: [PATCH 2/2] Multiple app['event'] dispatches: Update changelog --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fe408ef..2d10e206 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ Changelog ========= +## TBA + +### Fixes + +* Removed duplicate event dispatching when using MultiLogger configuration + [#337](https://github.com/bugsnag/bugsnag-laravel/pull/337) + ## 2.15.1 (2018-11-05) ### Fixes