From 9c42db78c1d1b7df8ac552ac7ee691aa480ca54f Mon Sep 17 00:00:00 2001 From: aunsane Date: Sat, 25 Feb 2017 18:14:00 +0300 Subject: Tox: added some logs to find problem by issue #720 --- protocols/Tox/src/tox_contacts.cpp | 2 ++ protocols/Tox/src/tox_network.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/Tox/src') 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; -- cgit v1.2.3