Skip to content

Commit

Permalink
Disable guzzle exceptions to allow logging non status 200 responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Pociot committed Feb 17, 2016
1 parent cfa4b6e commit 8bf9372
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mpociot/CaptainHook/Jobs/TriggerWebhooksJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@ public function handle()
});

$client->post($webhook[ 'url' ], [
'exceptions' => false,
'body' => $this->eventData,
'verify' => false,
'handler' => $middleware($client->getConfig('handler')),
]);
} else {
$client->post($webhook[ 'url' ], [
'exceptions' => false,
'body' => $this->eventData,
'verify' => false,
'timeout' => 10,
Expand Down

0 comments on commit 8bf9372

Please sign in to comment.