1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-20 16:16:37 +02:00

Rewriting the write method

Before, the write method would alter the $record array and then call parent::write().
Now the method builds the string which should be written into the stream and then does it himself.
I had to change two methods to be protected so the PushoverHandler could call them.
This commit is contained in:
Sebastian Goettschkes
2012-09-09 21:10:42 +02:00
parent d6489bb3ae
commit 7d0bacf29c
2 changed files with 5 additions and 5 deletions

View File

@@ -219,7 +219,7 @@ class SocketHandler extends AbstractProcessingHandler
}
}
private function connectIfNotConnected()
protected function connectIfNotConnected()
{
if ($this->isConnected()) {
return;
@@ -253,7 +253,7 @@ class SocketHandler extends AbstractProcessingHandler
}
}
private function writeToSocket($data)
protected function writeToSocket($data)
{
$length = strlen($data);
$sent = 0;