We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1006959 commit f1edfa7Copy full SHA for f1edfa7
src/Symfony/Bridge/Monolog/Handler/ServerLogHandler.php
@@ -51,9 +51,15 @@ public function handle(array $record)
51
if (!$this->socket = $this->socket ?: $this->createSocket()) {
52
return false === $this->bubble;
53
}
54
+ } finally {
55
+ restore_error_handler();
56
+ }
57
- $recordFormatted = $this->formatRecord($record);
58
+ $recordFormatted = $this->formatRecord($record);
59
60
+ set_error_handler(self::class.'::nullErrorHandler');
61
+
62
+ try {
63
if (-1 === stream_socket_sendto($this->socket, $recordFormatted)) {
64
stream_socket_shutdown($this->socket, STREAM_SHUT_RDWR);
65
0 commit comments