From defc20f15fc3c239cdc3623a3d86b7d4d2935e2a Mon Sep 17 00:00:00 2001 From: Wilco Louwerse Date: Tue, 24 Oct 2023 13:58:18 +0200 Subject: [PATCH] Exclude Notice and Warning from Log Actions --- api/src/Logger/SessionDataProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Logger/SessionDataProcessor.php b/api/src/Logger/SessionDataProcessor.php index a85960e7d..bd1d66a91 100644 --- a/api/src/Logger/SessionDataProcessor.php +++ b/api/src/Logger/SessionDataProcessor.php @@ -81,7 +81,7 @@ public function dispatchLogCreateAction(array $record): array $this->entityManager->getConnection()->getSchemaManager()->listDatabases() ) === true && $this->entityManager->getConnection()->getSchemaManager()->tablesExist('action') === true - && in_array($record['level_name'], ['DEBUG', 'INFO']) === false + && in_array($record['level_name'], ['DEBUG', 'INFO', 'NOTICE', 'WARNING']) === false ){ $event = new ActionEvent('commongateway.action.event', $record, 'core.log.create');