From f5ee7736d93267d53c7364a7a8e9024005b1bbf2 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 19 Jun 2020 13:44:27 +0200 Subject: [PATCH] Don't log Keys Signed-off-by: Joas Schilling --- lib/private/Log/ExceptionSerializer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/private/Log/ExceptionSerializer.php b/lib/private/Log/ExceptionSerializer.php index 4ec35b95673..e4980492d30 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\HintException; +use OC\Security\IdentityProof\Key; use OC\Setup; class ExceptionSerializer { @@ -94,7 +95,10 @@ class ExceptionSerializer { ], Setup::class => [ 'install' - ] + ], + Key::class => [ + '__construct' + ], ]; private function editTrace(array &$sensitiveValues, array $traceLine): array { -- 2.39.5