]> _ Git - psq.git/commitdiff
Update DispatchMailgunEvent.php
authorLouis Jeckel <louis.jeckel@outlook.cm>
Mon, 7 Sep 2020 07:33:33 +0000 (09:33 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Mon, 7 Sep 2020 07:33:33 +0000 (09:33 +0200)
app/Events/DispatchMailgunEvent.php

index 13523887847e4e1de49cea6aec1cf723d304550e..86177085f4b4275fe6e0c41975afb31a9bd73a0e 100644 (file)
@@ -38,7 +38,6 @@ class DispatchMailgunEvent implements ShouldBroadcast
     {
         $tags = Arr::get($webhookData, 'event-data.tags');
 
-        \Log::info('mailgun event');
 
         /** @todo check webhook key */
 
@@ -55,6 +54,9 @@ class DispatchMailgunEvent implements ShouldBroadcast
         $this->broadcast = in_array(config('app.env'), $tags, true) &&
             ($event->wasRecentlyCreated);
 
+        \Log::info("broadcast : $this->broadcast");
+
+
         $event->touch();
 
         $this->data = $event;