diff --git a/src/Http/Controllers/IncomingWebhookController.php b/src/Http/Controllers/IncomingWebhookController.php index a947a0b..29ea793 100644 --- a/src/Http/Controllers/IncomingWebhookController.php +++ b/src/Http/Controllers/IncomingWebhookController.php @@ -5,6 +5,7 @@ use Aws\Sns\Message; use Illuminate\Routing\Controller; use Illuminate\Support\Facades\Http; +use Illuminate\Support\Facades\Log; use Meema\MediaConverter\Events\ConversionHasCompleted; use Meema\MediaConverter\Events\ConversionHasError; use Meema\MediaConverter\Events\ConversionHasInputInformation; @@ -28,6 +29,14 @@ public function __invoke() try { $message = $this->ensureSubscriptionIsConfirmed(); + Log::info('incoming MediaConvert webhook message', $message); + + if (!array_key_exists('Status', $message)) { + Log::alert('incoming MediaConvert webhook: "Status"-key does not exist'); + + return; + } + $detail = $message['detail']; $status = $detail['status'];