Improved logging
This commit is contained in:
parent
2614c863a4
commit
e900358bd2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user