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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user