Skip to content

Commit

Permalink
Connection: Log when a room state cache is written
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Nov 22, 2018
1 parent 7f50a50 commit 53f3fe7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,7 @@ void Connection::saveRoomState(Room* r) const
auto data = d->cacheToBinary ? json.toBinaryData()
: json.toJson(QJsonDocument::Compact);
outRoomFile.write(data.data(), data.size());
qCDebug(MAIN) << "Room state cache saved to" << outRoomFile.fileName();
} else {
qCWarning(MAIN) << "Error opening" << outRoomFile.fileName()
<< ":" << outRoomFile.errorString();
Expand Down

0 comments on commit 53f3fe7

Please sign in to comment.