1
0
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:
Jordi Boggiano
2015-07-12 14:40:07 +01:00
parent 1edc7d9cc9
commit e92a8823c0
4 changed files with 57 additions and 46 deletions

View File

@@ -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);
}
}