Skip to content

Fix Async logging - #1059

Merged
erikn69 merged 1 commit into
masterfrom
erikn69-patch-2
Jun 20, 2026
Merged

Fix Async logging #1059
erikn69 merged 1 commit into
masterfrom
erikn69-patch-2

Conversation

@erikn69

@erikn69 erikn69 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Remove check for auditing enabled before executing Auditor.
If the event has already been dispatched, it means that all audit requirements were met;
there is no need to check again.

Same as RecordCustomAudit :

class RecordCustomAudit
{
public function handle(AuditCustom $event): void
{
Auditor::execute($event->model);
}
}

It works in sync, but we don't take into account async queues.

@willpower232 hi, any comments?

Remove check for auditing enabled before executing Auditor.

@willpower232 willpower232 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm far away from a computer for a bit but makes sense from what I can see on my phone 😅

@erikn69
erikn69 merged commit 31b73b7 into master Jun 20, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Async logging does not work

2 participants