You are here

private function SocketHandler::connectIfNotConnected in Lagoon Logs 8

1 call to SocketHandler::connectIfNotConnected()
SocketHandler::write in src/Logger/SocketHandler.php
Connect (if necessary) and write to the socket

File

src/Logger/SocketHandler.php, line 282

Class

SocketHandler
Stores to any socket - uses fsockopen() or pfsockopen().

Namespace

Drupal\lagoon_logs\Logger

Code

private function connectIfNotConnected() {
  if ($this
    ->isConnected()) {
    return;
  }
  $this
    ->connect();
}