mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-23 09:36:11 +02:00
Migrate the curl retry functionality into a util class for re-use, refs #599
This commit is contained in:
@@ -63,9 +63,6 @@ class MandrillHandler extends MailHandler
|
||||
'async' => false,
|
||||
)));
|
||||
|
||||
if (curl_exec($ch) === false) {
|
||||
throw new \RuntimeException(sprintf('Curl error (code %s): %s', curl_errno($ch), curl_error($ch)));
|
||||
}
|
||||
curl_close($ch);
|
||||
Curl\Util::execute($ch);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user