diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-10-22 08:43:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 08:43:59 +0200 |
commit | 06c1328ce7e5fbbaf640cdfb530e07eaf6db826f (patch) | |
tree | 0a7070568593af1bb54c50f03cd6e34d0a16d770 /lib | |
parent | 9330d8e73b8b60de05abb39fcc00744e415d831a (diff) | |
parent | c6f0a422b0a589f99bd201ef14699d7ef4ae2161 (diff) | |
download | nextcloud-server-06c1328ce7e5fbbaf640cdfb530e07eaf6db826f.tar.gz nextcloud-server-06c1328ce7e5fbbaf640cdfb530e07eaf6db826f.zip |
Merge pull request #48830 from nextcloud/backport/48603/stable30
[stable30] fix(logger): Remove more parameters of other methods
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Log/ExceptionSerializer.php | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/lib/private/Log/ExceptionSerializer.php b/lib/private/Log/ExceptionSerializer.php index 03beed7cce1..25e52e66f39 100644 --- a/lib/private/Log/ExceptionSerializer.php +++ b/lib/private/Log/ExceptionSerializer.php @@ -6,6 +6,7 @@ namespace OC\Log; use OC\Core\Controller\SetupController; +use OC\Http\Client\Client; use OC\Security\IdentityProof\Key; use OC\Setup; use OC\SystemConfig; @@ -106,6 +107,22 @@ class ExceptionSerializer { Key::class => [ '__construct' ], + Client::class => [ + 'request', + 'delete', + 'deleteAsync', + 'get', + 'getAsync', + 'head', + 'headAsync', + 'options', + 'optionsAsync', + 'patch', + 'post', + 'postAsync', + 'put', + 'putAsync', + ], \Redis::class => [ 'auth' ], @@ -196,13 +213,13 @@ class ExceptionSerializer { private function removeValuesFromArgs($args, $values): array { $workArgs = []; - foreach ($args as $arg) { + foreach ($args as $key => $arg) { if (in_array($arg, $values, true)) { $arg = self::SENSITIVE_VALUE_PLACEHOLDER; } elseif (is_array($arg)) { $arg = $this->removeValuesFromArgs($arg, $values); } - $workArgs[] = $arg; + $workArgs[$key] = $arg; } return $workArgs; } |