summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCacheController.cpp
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-04-02 05:35:19 -0400
committerMason Reed <mason@vector35.com>2025-04-02 05:36:54 -0400
commitbc4ad889f0edc54f0f6e073e3f5a474d8cec55e3 (patch)
tree1eaa7be6e8f53ca7b09f089a568ee2ddc42581ac /view/sharedcache/core/SharedCacheController.cpp
parentcfb8215d6aa0703ad0d6c3046431536b4e37d810 (diff)
[SharedCache] Consistent logger naming and misc changes
Diffstat (limited to 'view/sharedcache/core/SharedCacheController.cpp')
-rw-r--r--view/sharedcache/core/SharedCacheController.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/view/sharedcache/core/SharedCacheController.cpp b/view/sharedcache/core/SharedCacheController.cpp
index 72d5d950..e2e49c84 100644
--- a/view/sharedcache/core/SharedCacheController.cpp
+++ b/view/sharedcache/core/SharedCacheController.cpp
@@ -69,7 +69,7 @@ DSCRef<SharedCacheController> SharedCacheController::Initialize(BinaryView& view
{
auto id = GetViewIdFromView(view);
std::unique_lock<std::shared_mutex> lock(GlobalControllersMutex);
- auto logger = new Logger("SharedCacheController", view.GetFile()->GetSessionId());
+ auto logger = new Logger("SharedCache.Controller", view.GetFile()->GetSessionId());
DSCRef<SharedCacheController> dscView = new SharedCacheController(std::move(cache), logger);
// Pull the settings from the view.
@@ -216,6 +216,8 @@ bool SharedCacheController::ApplyImage(BinaryView& view, const CacheImage& image
m_loadedImages.insert(image.headerAddress);
+ m_logger->LogInfoF("Loaded image: '{}'", image.path);
+
// TODO: This needs to be done in a "database save" callback.
view.StoreMetadata(METADATA_KEY, GetMetadata());