summaryrefslogtreecommitdiff
path: root/protocols/Tox/src
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-02-25 18:14:00 +0300
committeraunsane <aunsane@gmail.com>2017-02-25 18:14:45 +0300
commit9c42db78c1d1b7df8ac552ac7ee691aa480ca54f (patch)
tree868720a5dd4fe8c35e5206591279813e0d12cbd0 /protocols/Tox/src
parentc8711bcc5e14c970439e208ee5c05b420bf14259 (diff)
Tox: added some logs to find problem by issue #720
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r--protocols/Tox/src/tox_contacts.cpp2
-rw-r--r--protocols/Tox/src/tox_network.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp
index a2ea294ee0..d8871542db 100644
--- a/protocols/Tox/src/tox_contacts.cpp
+++ b/protocols/Tox/src/tox_contacts.cpp
@@ -319,6 +319,8 @@ void CToxProto::OnConnectionStatusChanged(Tox*, uint32_t friendNumber, TOX_CONNE
if (!hContact)
return;
+ Netlib_Logf(proto->m_hNetlibUser, __FUNCTION__": friend(%d) status changed to (%d)", friendNumber, status);
+
if (status != TOX_CONNECTION_NONE)
{
proto->delSetting(hContact, "Auth");
diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp
index a576740d8e..893096039e 100644
--- a/protocols/Tox/src/tox_network.cpp
+++ b/protocols/Tox/src/tox_network.cpp
@@ -267,7 +267,7 @@ void CToxProto::PollingThread(void*)
{
SetStatus(ID_STATUS_OFFLINE);
debugLogA(__FUNCTION__": failed to initialize tox core (%d)", error);
- ShowNotification(ToxErrorToString(error), TranslateT("Unable to initialize Tox core"), MB_ICONERROR);
+ ShowNotification(TranslateT("Unable to initialize Tox core"), ToxErrorToString(error), MB_ICONERROR);
tox_options_free(options);
debugLogA(__FUNCTION__": leaving");
return;