Improved logging
This commit is contained in:
parent
2614c863a4
commit
e900358bd2
@ -62,10 +62,11 @@ class WriteLoop extends ResumableSignalLoop
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$please_wait = yield $this->{$connection->temp_auth_key === null ? 'unencryptedWriteLoopAsync' : 'encryptedWriteLoopAsync'}();
|
$please_wait = yield $this->{$connection->temp_auth_key === null ? 'unencryptedWriteLoopAsync' : 'encryptedWriteLoopAsync'}();
|
||||||
} catch (Amp\ByteStream\StreamException $e) {
|
} catch (\Amp\ByteStream\StreamException $e) {
|
||||||
if (isset($connection->old)) {
|
if (isset($connection->old)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$API->logger($e);
|
||||||
$API->logger->logger("Got nothing in the socket in DC {$datacenter}, reconnecting...", Logger::ERROR);
|
$API->logger->logger("Got nothing in the socket in DC {$datacenter}, reconnecting...", Logger::ERROR);
|
||||||
yield $connection->reconnect();
|
yield $connection->reconnect();
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user