From 132764bff538b6011801332616bd588b5cf1e039 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 27 Nov 2017 15:35:29 +0100 Subject: Pass log level to log reporters Signed-off-by: Morris Jobke --- lib/private/Log.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/private/Log.php') diff --git a/lib/private/Log.php b/lib/private/Log.php index a41c728df0d..bed0321bef3 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -351,6 +351,7 @@ class Log implements ILogger { $msg = isset($context['message']) ? $context['message'] : 'Exception'; $msg .= ': ' . json_encode($data); $this->log($level, $msg, $context); + $context['level'] = $level; if (!is_null($this->crashReporters)) { $this->crashReporters->delegateReport($exception, $context); } -- cgit v1.2.3