summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-01-19 10:09:37 +0100
committerGitHub <noreply@github.com>2023-01-19 10:09:37 +0100
commit739d6951f8b1adc9b0e92b4b0cfe4d12b7cdc140 (patch)
tree12a246eb34e9bf2c2ed1da1841fa920d4bbbb31f /lib/private
parenta2756bd3e697303d5eb3c1234eabf44ce7e69bb7 (diff)
parenta2073f4d4dccf33c75d4127e3d13491a10a279c3 (diff)
downloadnextcloud-server-739d6951f8b1adc9b0e92b4b0cfe4d12b7cdc140.tar.gz
nextcloud-server-739d6951f8b1adc9b0e92b4b0cfe4d12b7cdc140.zip
Merge pull request #36168 from nextcloud/backport/35970/stable24
[stable24] Improve exception serializing
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Log/ExceptionSerializer.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Log/ExceptionSerializer.php b/lib/private/Log/ExceptionSerializer.php
index 0758e48197a..975b517249e 100644
--- a/lib/private/Log/ExceptionSerializer.php
+++ b/lib/private/Log/ExceptionSerializer.php
@@ -228,13 +228,13 @@ class ExceptionSerializer {
}
private function encodeTrace($trace) {
- $filteredTrace = $this->filterTrace($trace);
- return array_map(function (array $line) {
+ $trace = array_map(function (array $line) {
if (isset($line['args'])) {
$line['args'] = array_map([$this, 'encodeArg'], $line['args']);
}
return $line;
- }, $filteredTrace);
+ }, $trace);
+ return $this->filterTrace($trace);
}
private function encodeArg($arg, $nestingLevel = 5) {