summaryrefslogtreecommitdiffstats
path: root/lib/private/Support/CrashReport
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-11-14 14:28:04 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-11-14 14:28:04 +0100
commitad757805ca3c6556dd912881d5469b97b1f66171 (patch)
treea24946c1eef99ed6ddf36293a4551e1710c95533 /lib/private/Support/CrashReport
parent2a39ac043e1bcb42111e7f442814d6f11522365b (diff)
downloadnextcloud-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 'lib/private/Support/CrashReport')
-rw-r--r--lib/private/Support/CrashReport/Registry.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Support/CrashReport/Registry.php b/lib/private/Support/CrashReport/Registry.php
index bdf18b492fd..e90e82958d1 100644
--- a/lib/private/Support/CrashReport/Registry.php
+++ b/lib/private/Support/CrashReport/Registry.php
@@ -45,10 +45,11 @@ class Registry implements IRegistry {
* Delegate crash reporting to all registered reporters
*
* @param Exception|Throwable $exception
+ * @param array $context
*/
- public function delegateReport($exception) {
+ public function delegateReport($exception, array $context = []) {
foreach ($this->reporters as $reporter) {
- $reporter->report($exception);
+ $reporter->report($exception, $context);
}
}