Added logs
This commit is contained in:
parent
e9c1a6d25d
commit
a6cb86639b
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,10 @@ $server->on("workerStart", function ($server, $workerId) use (&$connections) {
|
|||
|
||||
if($redis->ping('')) {
|
||||
$attempts = 0;
|
||||
Console::success('Connection established');
|
||||
}
|
||||
else {
|
||||
Console::error('Connection failed');
|
||||
}
|
||||
|
||||
sleep(1); // 1 sec delay between connection attempts
|
||||
|
|
Loading…
Reference in a new issue