summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordi Boggiano <j.boggiano@seld.be>2016-11-14 10:04:02 +0100
committerGitHub <noreply@github.com>2016-11-14 10:04:02 +0100
commitb5794652f5f0bf62c696b75f1ad1da782e1fa271 (patch)
treedbb95bbe8e9f8a7c43586918f9ebb843ce5a3453 /src
parentd7febf922c8d5faa63e3cd88b4e0ab47e678ee02 (diff)
parenteca984b64739bf6df3e0056bc7ad7f3ecaad4ecf (diff)
downloadmonolog-b5794652f5f0bf62c696b75f1ad1da782e1fa271.zip
monolog-b5794652f5f0bf62c696b75f1ad1da782e1fa271.tar.gz
monolog-b5794652f5f0bf62c696b75f1ad1da782e1fa271.tar.bz2
Merge pull request #824 from adambro/patch-1
Throw RuntimeException if socket resource is missing
Diffstat (limited to 'src')
-rw-r--r--src/Monolog/Handler/SyslogUdp/UdpSocket.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Monolog/Handler/SyslogUdp/UdpSocket.php b/src/Monolog/Handler/SyslogUdp/UdpSocket.php
index 0c703c8..f1801b3 100644
--- a/src/Monolog/Handler/SyslogUdp/UdpSocket.php
+++ b/src/Monolog/Handler/SyslogUdp/UdpSocket.php
@@ -44,7 +44,7 @@ class UdpSocket
protected function send($chunk)
{
if (!is_resource($this->socket)) {
- throw new \LogicException('The UdpSocket to '.$this->ip.':'.$this->port.' has been closed and can not be written to anymore');
+ throw new \RuntimeException('The UdpSocket to '.$this->ip.':'.$this->port.' has been closed and can not be written to anymore');
}
socket_sendto($this->socket, $chunk, strlen($chunk), $flags = 0, $this->ip, $this->port);
}