1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 00:56:08 +02:00

Fix SlackHandler bug where slack drops some messages if the socket is closed too early, fixes #729

This commit is contained in:
Jordi Boggiano
2016-03-07 12:29:57 +00:00
parent d68b63a0d0
commit 5085630fd6
2 changed files with 12 additions and 0 deletions

View File

@@ -255,6 +255,14 @@ class SocketHandler extends AbstractProcessingHandler
return (string) $record['formatted'];
}
/**
* @return resource|null
*/
protected function getResource()
{
return $this->resource;
}
private function connect()
{
$this->createSocketResource();