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_profile.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_profile.cpp')
-rw-r--r-- | protocols/Tox/src/tox_profile.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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);
|