mirror of
https://github.com/nextcloud/server.git
synced 2026-06-16 20:19:48 -04:00
fix(logger): Remove more parameters of other methods
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
4b312c0571
commit
d6417bf476
1 changed files with 19 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue