Skip to content

Commit

Permalink
Merge branch 'fix/adjust-logs-id-format' into 'develop'
Browse files Browse the repository at this point in the history
Adjust logs to show Ids in B64

See merge request megachat/MEGAchat!1011
  • Loading branch information
jgandres committed Feb 17, 2021
2 parents 2213471 + eefb9ac commit 39b3933
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/megachatapi_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3688,7 +3688,7 @@ MegaChatMessage *MegaChatApiImpl::getMessage(MegaChatHandle chatid, MegaChatHand
}
else
{
API_LOG_ERROR("Failed to find message by index, being index retrieved from message id (index: %d, id: %d)", index, msgid);
API_LOG_ERROR("Failed to find message by index, being index retrieved from message id (index: %d, id: %s)", index, ID_CSTR(msgid));
}
}
else // message still not confirmed, search in sending-queue
Expand All @@ -3700,13 +3700,13 @@ MegaChatMessage *MegaChatApiImpl::getMessage(MegaChatHandle chatid, MegaChatHand
}
else
{
API_LOG_ERROR("Failed to find message by temporal id (id: %d)", msgid);
API_LOG_ERROR("Failed to find message by temporal id (id: %s)", ID_CSTR(msgid));
}
}
}
else
{
API_LOG_ERROR("Chatroom not found (chatid: %d)", chatid);
API_LOG_ERROR("Chatroom not found (chatid: %s)", ID_CSTR(chatid));
}

sdkMutex.unlock();
Expand All @@ -3732,12 +3732,12 @@ MegaChatMessage *MegaChatApiImpl::getMessageFromNodeHistory(MegaChatHandle chati
}
else
{
API_LOG_ERROR("Failed to find message at node history (id: %d)", msgid);
API_LOG_ERROR("Failed to find message at node history (id: %s)", ID_CSTR(msgid));
}
}
else
{
API_LOG_ERROR("Chatroom not found (chatid: %d)", chatid);
API_LOG_ERROR("Chatroom not found (chatid: %s)", ID_CSTR(chatid));
}

sdkMutex.unlock();
Expand Down Expand Up @@ -3772,7 +3772,7 @@ MegaChatMessage *MegaChatApiImpl::getManualSendingMessage(MegaChatHandle chatid,
}
else
{
API_LOG_ERROR("Chatroom not found (chatid: %d)", chatid);
API_LOG_ERROR("Chatroom not found (chatid: %s)", ID_CSTR(chatid));
}

sdkMutex.unlock();
Expand Down

0 comments on commit 39b3933

Please sign in to comment.