summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_core.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-02-17 21:24:56 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-02-17 21:24:56 +0000
commit712e35eb4d8f1664b3d8e696b029e532cd928cee (patch)
tree750166637c6e02574e0d37596d985bff996f0434 /protocols/Tox/src/tox_core.cpp
parent0bd7314a45df9f2b01aa2a1728fe46fe18c3cf67 (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_core.cpp')
-rw-r--r--protocols/Tox/src/tox_core.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_core.cpp b/protocols/Tox/src/tox_core.cpp
index 0cd6e045c3..f079917040 100644
--- a/protocols/Tox/src/tox_core.cpp
+++ b/protocols/Tox/src/tox_core.cpp
@@ -2,7 +2,7 @@
bool CToxProto::InitToxCore()
{
- debugLogA("CToxProto::InitToxCore: initializing tox profile");
+ debugLogA("CToxProto::InitToxCore: initializing tox core");
Tox_Options options = { 0 };
options.udp_disabled = getBool("DisableUDP", 0);
@@ -33,11 +33,15 @@ bool CToxProto::InitToxCore()
}
}
+ debugLogA("CToxProto::InitToxCore: loading tox profile");
+
tox = tox_new(&options);
password = mir_utf8encodeW(ptrT(getTStringA("Password")));
bool isProfileLoaded = LoadToxProfile();
if (isProfileLoaded)
{
+ debugLogA("CToxProto::InitToxCore: tox profile load successfully");
+
tox_callback_friend_request(tox, OnFriendRequest, this);
tox_callback_friend_message(tox, OnFriendMessage, this);
tox_callback_friend_action(tox, OnFriendAction, this);
@@ -79,6 +83,8 @@ bool CToxProto::InitToxCore()
}
else
{
+ debugLogA("CToxProto::InitToxCore: failed to load tox profile");
+
if (password != NULL)
{
mir_free(password);