From 8e09c4d75e26ed3fc165cd35fd1fc79614b1420e Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 4 May 2016 16:22:54 +0000 Subject: 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 --- protocols/Tox/src/tox_profile.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'protocols/Tox/src/tox_profile.cpp') diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp index 556d017144..28cef7b286 100644 --- a/protocols/Tox/src/tox_profile.cpp +++ b/protocols/Tox/src/tox_profile.cpp @@ -18,7 +18,7 @@ TCHAR* CToxProto::GetToxProfilePath(const TCHAR *accountName) bool CToxProto::LoadToxProfile(Tox_Options *options) { - logger->Log(__FUNCTION__": loading tox profile"); + debugLogA(__FUNCTION__": loading tox profile"); mir_cslock locker(profileLock); @@ -30,7 +30,7 @@ bool CToxProto::LoadToxProfile(Tox_Options *options) if (profile == NULL) { ShowNotification(TranslateT("Unable to open Tox profile"), MB_ICONERROR); - logger->Log(__FUNCTION__": failed to open tox profile"); + debugLogA(__FUNCTION__": failed to open tox profile"); return false; } @@ -54,7 +54,7 @@ bool CToxProto::LoadToxProfile(Tox_Options *options) { fclose(profile); ShowNotification(TranslateT("Unable to read Tox profile"), MB_ICONERROR); - logger->Log(__FUNCTION__": failed to read tox profile"); + debugLogA(__FUNCTION__": failed to read tox profile"); mir_free(data); return false; } @@ -77,7 +77,7 @@ bool CToxProto::LoadToxProfile(Tox_Options *options) if (!tox_pass_decrypt(data, size, (uint8_t*)(char*)password, mir_strlen(password), encryptedData, &coreDecryptError)) { ShowNotification(TranslateT("Unable to decrypt Tox profile"), MB_ICONERROR); - logger->Log(__FUNCTION__": failed to decrypt tox profile (%d)", coreDecryptError); + debugLogA(__FUNCTION__": failed to decrypt tox profile (%d)", coreDecryptError); mir_free(data); return false; } @@ -114,7 +114,7 @@ void CToxProto::SaveToxProfile(CToxThread *toxThread) TOX_ERR_ENCRYPTION coreEncryptError; if (!tox_pass_encrypt(data, size, (uint8_t*)(char*)password, mir_strlen(password), data, &coreEncryptError)) { - logger->Log(__FUNCTION__": failed to encrypt tox profile"); + debugLogA(__FUNCTION__": failed to encrypt tox profile"); mir_free(data); return; } @@ -125,7 +125,7 @@ void CToxProto::SaveToxProfile(CToxThread *toxThread) FILE *profile = _tfopen(profilePath, _T("wb")); if (profile == NULL) { - logger->Log(__FUNCTION__": failed to open tox profile"); + debugLogA(__FUNCTION__": failed to open tox profile"); mir_free(data); return; } @@ -133,7 +133,7 @@ void CToxProto::SaveToxProfile(CToxThread *toxThread) size_t written = fwrite(data, sizeof(char), size, profile); if (size != written) { - logger->Log(__FUNCTION__": failed to write tox profile"); + debugLogA(__FUNCTION__": failed to write tox profile"); } fclose(profile); -- cgit v1.2.3