mirror of
https://github.com/coollabsio/coolify.git
synced 2026-10-28 17:44:36 +08:00
20 lines
505 B
PHP
20 lines
505 B
PHP
<?php
|
|
|
|
namespace App\Logging;
|
|
|
|
use App\Services\Security\SensitiveDataRedactor;
|
|
use Illuminate\Log\Logger;
|
|
|
|
/**
|
|
* Redacts the audit log like every other channel, but keeps email addresses so the log still records who acted.
|
|
*/
|
|
final class RedactSensitiveAuditData
|
|
{
|
|
public function __construct(private readonly SensitiveDataRedactor $redactor) {}
|
|
|
|
public function __invoke(Logger $logger): void
|
|
{
|
|
(new RedactSensitiveData($this->redactor->withoutEmailRedaction()))($logger);
|
|
}
|
|
}
|