Skip to content

Commit c693c5c

Browse files
committed
Update Server.php
1 parent 3dacc1b commit c693c5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/VerifierServer/Server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function init(?LoopInterface $loop = null, bool $stream_socket_server = f
107107
*/
108108
private function initStreamSocketServer(): void
109109
{
110-
if (! is_resource($this->server = stream_socket_server("{$this->hostAddr}", $errno, $errstr))) {
110+
if (! is_resource($this->server = stream_socket_server($this->hostAddr, $errno, $errstr))) {
111111
throw new Exception("Failed to create server: $errstr ($errno)");
112112
}
113113
}
@@ -411,7 +411,7 @@ public function logError(Exception $e, bool $fatal = false): void
411411
{
412412
if ($fatal) $this->close();
413413
if (isset($this->logger)) $this->logger->warning(sprintf(
414-
"Error: %s" . PHP_EOL . "Line %d in %s" . PHP_EOL . "%s",
414+
($fatal ? '[FATAL] ' : '') . "Error: %s" . PHP_EOL . "Line %d in %s" . PHP_EOL . "%s",
415415
$e->getMessage(),
416416
$e->getLine(),
417417
$e->getFile(),

0 commit comments

Comments
 (0)