mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
(configd) send event name to syslog on timeout https://github.com/opnsense/core/issues/464
This commit is contained in:
parent
41479a3dfb
commit
bdf00a087d
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user