diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-10-22 08:58:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 08:58:26 +0200 |
commit | 6af2049c918e3258d1e54d2be1d9eaf3db482755 (patch) | |
tree | 5fb9da0ac9a0f52e562b17c594c7efce296db076 | |
parent | 8870090783181dc654042a983e2b6a46f48478d8 (diff) | |
parent | 52382e79564a1451161e42e911cd4616942b2c82 (diff) | |
download | nextcloud-server-6af2049c918e3258d1e54d2be1d9eaf3db482755.tar.gz nextcloud-server-6af2049c918e3258d1e54d2be1d9eaf3db482755.zip |
Merge pull request #48831 from nextcloud/backport/48603/stable29
[stable29] fix(logger): Remove more parameters of other methods
-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 8b895bcb6be..2edb7022354 100644 --- a/lib/private/Log/ExceptionSerializer.php +++ b/lib/private/Log/ExceptionSerializer.php @@ -29,6 +29,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; @@ -129,6 +130,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' ], @@ -219,13 +236,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; } |