[Libreoffice-commits] online.git: wsd/TileCache.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Mon Jan 2 06:18:04 UTC 2017
wsd/TileCache.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 85102cf76aa43beb525ed5342d690798bd598a99
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Sun Jan 1 23:20:50 2017 -0500
wsd: log the session name when subscribing for tiles
Change-Id: I478834bdd7e91eaa64b224a56c8344cb0ef9f82a
Reviewed-on: https://gerrit.libreoffice.org/32632
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/wsd/TileCache.cpp b/wsd/TileCache.cpp
index 0ee368f..4de0fa2 100644
--- a/wsd/TileCache.cpp
+++ b/wsd/TileCache.cpp
@@ -454,9 +454,9 @@ void TileCache::subscribeToTileRendering(const TileDesc& tile, const std::shared
}
}
- Log::debug() << "Subscribing to tile " << name << " which has "
+ Log::debug() << "Subscribing " << subscriber->getName() << " to tile " << name << " which has "
<< tileBeingRendered->_subscribers.size()
- << " subscribers already. Adding one more." << Log::end;
+ << " subscribers already." << Log::end;
tileBeingRendered->_subscribers.push_back(subscriber);
const auto duration = (std::chrono::steady_clock::now() - tileBeingRendered->getStartTime());
@@ -468,8 +468,8 @@ void TileCache::subscribeToTileRendering(const TileDesc& tile, const std::shared
}
else
{
- Log::debug() << "Subscribing to tile " << name << " which has no subscribers. Subscribing for ver: "
- << tile.getVersion() << "." << Log::end;
+ Log::debug() << "Subscribing " << subscriber->getName() << " to tile " << name
+ << " ver=" << tile.getVersion() << " which has no subscribers." << Log::end;
const std::string cachedName = cacheFileName(tile);
@@ -508,7 +508,7 @@ std::string TileCache::cancelTiles(const std::shared_ptr<ClientSession> &subscri
[sub](std::weak_ptr<ClientSession>& ptr){ return ptr.lock().get() == sub; });
if (itRem != subscribers.end())
{
- Log::trace("Tile " + it->first + " has " + std::to_string(subscribers.size()) + " subscribers. Removing one.");
+ Log::trace("Tile " + it->first + " has " + std::to_string(subscribers.size()) + " subscribers. Removing " + subscriber->getName() + ".");
subscribers.erase(itRem, itRem + 1);
if (subscribers.empty())
{
More information about the Libreoffice-commits
mailing list