feat(MainDb): add logs on chat rooms fetch

This commit is contained in:
Ronan Abhamon 2017-11-23 16:07:30 +01:00
parent f6cd06d37d
commit 98d0ae00b0
2 changed files with 4 additions and 1 deletions

View file

@ -130,7 +130,7 @@ shared_ptr<ChatRoom> Core::findChatRoom (const ChatRoomId &chatRoomId) const {
if (it != d->chatRoomsById.cend())
return it->second;
lInfo() << "Unable to find chat room: (peer=" <<
lInfo() << "Unable to find chat room in RAM: (peer=" <<
chatRoomId.getPeerAddress().asString() << ", local=" << chatRoomId.getLocalAddress().asString() << ").";
return shared_ptr<ChatRoom>();

View file

@ -1410,6 +1410,9 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
dChatRoom->creationTime = Utils::getTmAsTimeT(creationDate);
dChatRoom->lastUpdateTime = Utils::getTmAsTimeT(lastUpdateDate);
lInfo() << "Found chat room in DB: (peer=" <<
chatRoomId.getPeerAddress().asString() << ", local=" << chatRoomId.getLocalAddress().asString() << ").";
chatRooms.push_back(chatRoom);
}