Avoid email log

My app send 2 kind of email
automatic (for example when an item is created) or manual, from admin to user
i have setup a listener that fires when i send an email (any kind of email)
then i have a function that create a log
public function handle(object $event): void
    {   
        if(isset($event->data['repairId'])){
            $Log =  $this->createRepairLog($event->data['subject'], 1, 'EmailSent', $event->data['repairId'], '', auth()->id());
        }
    }

the second parameters of createRepairLog can be 1 or 0
for example

when a repair is created, 2 email are sent
1 at customer (1)
and
1 at assignee technician (0)

how can i differentiate this two emails to create the proper log?
Was this page helpful?