Skip to content

Commit

Permalink
Exclude Notice and Warning from Log Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Oct 24, 2023
1 parent 978efcd commit defc20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/Logger/SessionDataProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit defc20f

Please sign in to comment.