Skip to content

Commit

Permalink
Fix control of unknown type notification
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloveintimilla committed Apr 8, 2024
1 parent 4b419c1 commit b29e315
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions EventSubscriber/CallbackSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,8 @@ public function processJsonPayload(string $type, $message = ''): void
$this->processBounce();
break;
default:
$message = 'Received SES webhook of type ' . $this->payload['Type'] . " but couldn't understand payload";
$this->logger->warning($message);
$this->logger->debug('SES webhook payload: ' . json_encode($this->payload));
$message = "Received SES webhook of type: $type but couldn't understand payload: ";
$this->logger->error($message . json_encode($this->payload));
throw new BadRequestHttpException($message);
}
}
Expand Down

0 comments on commit b29e315

Please sign in to comment.