Commit bdf00a08 authored by Ad Schellevis's avatar Ad Schellevis

(configd) send event name to syslog on timeout https://github.com/opnsense/core/issues/464

parent 41479a3d
......@@ -92,7 +92,7 @@ class Backend
$resp = "";
$stream = stream_socket_client('unix://'.$this->configdSocket, $errorNumber, $errorMessage, $poll_timeout);
if ($stream === false) {
$this->getLogger()->error("Failed to connect: $errorMessage");
$this->getLogger()->error("Failed to connect to configd socket: $errorMessage");
return null;
}
......@@ -116,7 +116,7 @@ class Backend
// handle timeouts
if ((time() - $starttime) > $timeout) {
$this->getLogger()->error("Failed to connect: $errorMessage");
$this->getLogger()->error("Timeout (".$timeout.") executing : ".$event);
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment