2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Replace cDebug() with Logs::DebugEnabled().

This commit is contained in:
John Preston
2018-06-05 16:32:26 +03:00
parent 9055b33e92
commit 72f95b984f
22 changed files with 58 additions and 45 deletions

View File

@@ -1705,7 +1705,7 @@ ConnectionPrivate::HandleResult ConnectionPrivate::handleOneReceived(const mtpPr
|| (errorCode == 17) // bad msg_id
|| (errorCode == 64); // bad container
if (errorCode == 64) { // bad container!
if (cDebug()) {
if (Logs::DebugEnabled()) {
mtpRequest request;
{
QWriteLocker locker(sessionData->haveSentMutex());

View File

@@ -919,7 +919,7 @@ void Instance::Private::clearCallbacksDelayed(
return;
}
if (cDebug()) {
if (Logs::DebugEnabled()) {
auto idsString = QStringList();
idsString.reserve(ids.size());
for (auto &value : ids) {
@@ -939,7 +939,7 @@ void Instance::Private::clearCallbacks(
Expects(!ids.empty());
for (const auto &clearRequest : ids) {
if (cDebug()) {
if (Logs::DebugEnabled()) {
QMutexLocker locker(&_parserMapLock);
if (_parserMap.find(clearRequest.requestId) != _parserMap.end()) {
DEBUG_LOG(("RPC Info: "