diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-05-04 16:22:54 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-05-04 16:22:54 +0000 |
commit | 8e09c4d75e26ed3fc165cd35fd1fc79614b1420e (patch) | |
tree | 5991c15526aa4fbe13d12d956cc039e8e3edaf9a /protocols/Tox/src/tox_messages.cpp | |
parent | 0a43d6b600e48abd24097a4dc8d82f4dc7f0a188 (diff) |
Tox:
- removed own logger
- bootstrap splitted into two functions: udp and tcp
git-svn-id: http://svn.miranda-ng.org/main/trunk@16801 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_messages.cpp')
-rw-r--r-- | protocols/Tox/src/tox_messages.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp index 0fb393e5da..a44c1084de 100644 --- a/protocols/Tox/src/tox_messages.cpp +++ b/protocols/Tox/src/tox_messages.cpp @@ -61,7 +61,7 @@ void CToxProto::SendMessageAsync(void *arg) int messageNumber = tox_friend_send_message(toxThread->Tox(), friendNumber, type, msg, msgLen, &sendError);
if (sendError != TOX_ERR_FRIEND_SEND_MESSAGE_OK)
{
- logger->Log(__FUNCTION__": failed to send message for %d (%d)", friendNumber, sendError);
+ debugLogA(__FUNCTION__": failed to send message for %d (%d)", friendNumber, sendError);
ProtoBroadcastAck(param->hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, (HANDLE)param->hMessage, (LPARAM)_T2A(ToxErrorToString(sendError)));
}
uint64_t messageId = (((int64_t)friendNumber) << 32) | ((int64_t)messageNumber);
@@ -142,7 +142,7 @@ void CToxProto::GetStatusMessageAsync(void* arg) size_t size = tox_friend_get_status_message_size(toxThread->Tox(), friendNumber, &error);
if (error != TOX_ERR_FRIEND_QUERY::TOX_ERR_FRIEND_QUERY_OK)
{
- logger->Log(__FUNCTION__": failed to get status message for (%d) (%d)", friendNumber, error);
+ debugLogA(__FUNCTION__": failed to get status message for (%d) (%d)", friendNumber, error);
ProtoBroadcastAck(hContact, ACKTYPE_AWAYMSG, ACKRESULT_FAILED, (HANDLE)hContact, 0);
return;
}
@@ -150,7 +150,7 @@ void CToxProto::GetStatusMessageAsync(void* arg) ptrA statusMessage((char*)mir_calloc(size + 1));
if (!tox_friend_get_status_message(toxThread->Tox(), friendNumber, (uint8_t*)(char*)statusMessage, &error))
{
- logger->Log(__FUNCTION__": failed to get status message for (%d) (%d)", friendNumber, error);
+ debugLogA(__FUNCTION__": failed to get status message for (%d) (%d)", friendNumber, error);
ProtoBroadcastAck(hContact, ACKTYPE_AWAYMSG, ACKRESULT_FAILED, (HANDLE)hContact, 0);
return;
}
@@ -168,7 +168,7 @@ int CToxProto::OnUserIsTyping(MCONTACT hContact, int type) TOX_ERR_SET_TYPING error;
if (!tox_self_set_typing(toxThread->Tox(), friendNumber, type == PROTOTYPE_SELFTYPING_ON, &error))
- logger->Log(__FUNCTION__": failed to send typing (%d)", error);
+ debugLogA(__FUNCTION__": failed to send typing (%d)", error);
return 0;
}
|