chore: reduce logger noise

This commit is contained in:
Björn Fromme
2026-03-16 12:01:09 +01:00
parent 06e64bd3b8
commit c5934e4c5b
+3 -1
View File
@@ -7,6 +7,7 @@ namespace App\Logger;
use App\Entity\LogEntry;
use Doctrine\ORM\EntityManagerInterface;
use Monolog\Handler\AbstractProcessingHandler;
use Monolog\Level;
use Monolog\LogRecord;
/**
@@ -14,12 +15,13 @@ use Monolog\LogRecord;
*
* Writes log records to the LogEntry entity, replacing message placeholders
* with context values. Includes channel, context, and extra data for auditing.
* Only processes INFO level and above to avoid storing debug messages.
*/
class DatabaseHandler extends AbstractProcessingHandler
{
public function __construct(private readonly EntityManagerInterface $entityManager)
{
parent::__construct();
parent::__construct(Level::Info);
}
protected function write(LogRecord $record): void