1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 00:56:08 +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

@@ -144,8 +144,6 @@ class CubeHandler extends AbstractProcessingHandler
'Content-Length: ' . strlen('['.$data.']'))
);
if (curl_exec($this->httpConnection) === false) {
throw new \RuntimeException(sprintf('Curl error (code %s): %s', curl_errno($ch), curl_error($ch)));
}
Curl\Util::execute($ch, 5, false);
}
}