Improved logging

This commit is contained in:
Daniil Gentili 2019-06-04 18:36:47 +02:00
parent 2614c863a4
commit e900358bd2

View File

@ -62,10 +62,11 @@ class WriteLoop extends ResumableSignalLoop
try {
$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)) {
return;
}
$API->logger($e);
$API->logger->logger("Got nothing in the socket in DC {$datacenter}, reconnecting...", Logger::ERROR);
yield $connection->reconnect();
continue;