diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-11-14 14:28:04 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-11-14 14:28:04 +0100 |
commit | ad757805ca3c6556dd912881d5469b97b1f66171 (patch) | |
tree | a24946c1eef99ed6ddf36293a4551e1710c95533 /tests/lib | |
parent | 2a39ac043e1bcb42111e7f442814d6f11522365b (diff) | |
download | nextcloud-server-ad757805ca3c6556dd912881d5469b97b1f66171.tar.gz nextcloud-server-ad757805ca3c6556dd912881d5469b97b1f66171.zip |
Pass the exception context to the crash reporter
This should allow better reports as often the app id is passed
as context. While this is not used right now, I'd like to have this
for NC13 as adding it later will break the interface for existing apps
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/LoggerTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/LoggerTest.php b/tests/lib/LoggerTest.php index 76f33849deb..54336da105c 100644 --- a/tests/lib/LoggerTest.php +++ b/tests/lib/LoggerTest.php @@ -90,7 +90,7 @@ class LoggerTest extends TestCase { $e = new \Exception('test'); $this->registry->expects($this->once()) ->method('delegateReport') - ->with($e); + ->with($e, []); $this->logger->logException($e); @@ -109,7 +109,7 @@ class LoggerTest extends TestCase { $e = new \Exception('test'); $this->registry->expects($this->once()) ->method('delegateReport') - ->with($e); + ->with($e, []); $this->logger->logException($e); @@ -128,7 +128,7 @@ class LoggerTest extends TestCase { $e = new \Exception('test'); $this->registry->expects($this->once()) ->method('delegateReport') - ->with($e); + ->with($e, []); $this->logger->logException($e); @@ -147,7 +147,7 @@ class LoggerTest extends TestCase { $e = new \Exception('test'); $this->registry->expects($this->once()) ->method('delegateReport') - ->with($e); + ->with($e, []); $this->logger->logException($e); |