summaryrefslogtreecommitdiffstats
path: root/lib/private/Log.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-09-03 08:37:50 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-09-05 20:58:39 +0200
commitff58732c0d56a5269a31c132cd5bd0fe5b9ad3fa (patch)
treee2eaffa273423b047d9e4e66c12ae83244371d7f /lib/private/Log.php
parent0899f2cbc43b05005dc045db001c41e199192f67 (diff)
downloadnextcloud-server-ff58732c0d56a5269a31c132cd5bd0fe5b9ad3fa.tar.gz
nextcloud-server-ff58732c0d56a5269a31c132cd5bd0fe5b9ad3fa.zip
Add breadcrumb support to crash reporters
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Log.php')
-rw-r--r--lib/private/Log.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php
index 33d1ddcdc34..43ff4cc9dee 100644
--- a/lib/private/Log.php
+++ b/lib/private/Log.php
@@ -217,6 +217,10 @@ class Log implements ILogger {
if ($level >= $minLevel) {
$this->writeLog($app, $message, $level);
}
+
+ if (!is_null($this->crashReporters)) {
+ $this->crashReporters->delegateBreadcrumb($message, 'log', $context);
+ }
}
private function getLogLevel($context) {