diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-02-17 21:24:56 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-02-17 21:24:56 +0000 |
commit | 712e35eb4d8f1664b3d8e696b029e532cd928cee (patch) | |
tree | 750166637c6e02574e0d37596d985bff996f0434 /protocols/Tox/src/tox_network.cpp | |
parent | 0bd7314a45df9f2b01aa2a1728fe46fe18c3cf67 (diff) |
Tox: added additional logging
git-svn-id: http://svn.miranda-ng.org/main/trunk@12172 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_network.cpp')
-rw-r--r-- | protocols/Tox/src/tox_network.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp index 71ec195ccb..a734d08ee7 100644 --- a/protocols/Tox/src/tox_network.cpp +++ b/protocols/Tox/src/tox_network.cpp @@ -7,6 +7,8 @@ bool CToxProto::IsOnline() void CToxProto::BootstrapDht()
{
+ debugLogA("CToxProto::BootstrapDht: bootstraping DHT");
+
bool isIPv4 = getBool("DisableIPv6", 0);
int nodeCount = db_get_w(NULL, MODULE, TOX_SETTINGS_NODE_COUNT, 0);
if (!nodeCount)
@@ -71,18 +73,20 @@ void CToxProto::CheckConnection(int &retriesCount) {
if (!isConnected)
{
+ debugLogA("CToxProto::CheckConnection: lost connection with DHT");
TryConnect();
}
else
{
if (tox_isconnected(tox))
{
+ debugLogA("CToxProto::CheckConnection: restored connection with DHT");
retriesCount = TOX_MAX_DISCONNECT_RETRIES;
}
else if (!(--retriesCount))
{
isConnected = false;
- debugLogA("CToxProto::PollingThread: disconnected from DHT");
+ debugLogA("CToxProto::CheckConnection: disconnected from DHT");
SetStatus(ID_STATUS_OFFLINE);
}
}
|