aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-09 16:27:32 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-10 16:17:01 +0900
commit2b4952b6686f647c5470033de2cb14577cfb41f1 (patch)
tree3d5b3035e61726ae3c8b0934d82d9cd3a7ed96fe
parentc46fccdfacaa299eee9bfb96d86d2c784db3e9ca (diff)
downloadlibquotient-2b4952b6686f647c5470033de2cb14577cfb41f1.tar.gz
libquotient-2b4952b6686f647c5470033de2cb14577cfb41f1.zip
Log room creation only once
-rw-r--r--connection.cpp1
-rw-r--r--room.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/connection.cpp b/connection.cpp
index 368abc8e..d4f6bf61 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -446,7 +446,6 @@ Room* Connection::provideRoom(const QString& id, JoinState joinState)
return nullptr;
}
d->roomMap.insert(roomKey, room);
- qCDebug(MAIN) << "Created Room" << id << ", invited:" << roomKey.second;
emit newRoom(room);
}
if (joinState == JoinState::Invite)
diff --git a/room.cpp b/room.cpp
index 6e6e7e39..3beac1b2 100644
--- a/room.cpp
+++ b/room.cpp
@@ -146,7 +146,7 @@ Room::Room(Connection* connection, QString id, JoinState initialJoinState)
// See "Accessing the Public Class" section in
// https://marcmutz.wordpress.com/translated-articles/pimp-my-pimpl-%E2%80%94-reloaded/
d->q = this;
- qCDebug(MAIN) << "New Room:" << id;
+ qCDebug(MAIN) << "New" << toCString(initialJoinState) << "Room:" << id;
}
Room::~Room()