More logs
This commit is contained in:
parent
80aebfa359
commit
c5789f38bb
@ -330,6 +330,7 @@ class Connection extends Session
|
||||
$this->API->logger->logger("Connecting to DC {$this->datacenterId}", \danog\MadelineProto\Logger::WARNING);
|
||||
$ctx->setReadCallback([$this, 'haveRead']);
|
||||
$this->stream = (yield from $ctx->getStream());
|
||||
$this->API->logger->logger("Connected to DC {$this->datacenterId}!", \danog\MadelineProto\Logger::WARNING);
|
||||
if ($this->needsReconnect) {
|
||||
$this->needsReconnect = false;
|
||||
}
|
||||
|
@ -251,7 +251,7 @@ class DataCenter
|
||||
if (\MADELINEPROTO_TEST === 'pony') {
|
||||
throw $e;
|
||||
}
|
||||
$this->API->logger->logger('Connection failed: ' . $e->getMessage(), \danog\MadelineProto\Logger::ERROR);
|
||||
$this->API->logger->logger("Connection failed ({$dc_number}): " . $e->getMessage(), \danog\MadelineProto\Logger::ERROR);
|
||||
}
|
||||
}
|
||||
throw new \danog\MadelineProto\Exception("Could not connect to DC {$dc_number}");
|
||||
|
Loading…
x
Reference in New Issue
Block a user