diff options
Diffstat (limited to 'src/zenserver/cache/structuredcachestore.cpp')
| -rw-r--r-- | src/zenserver/cache/structuredcachestore.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/zenserver/cache/structuredcachestore.cpp b/src/zenserver/cache/structuredcachestore.cpp index 48463fcd8..05b4c2e58 100644 --- a/src/zenserver/cache/structuredcachestore.cpp +++ b/src/zenserver/cache/structuredcachestore.cpp @@ -278,8 +278,7 @@ ZenCacheStore::ZenCacheStore(GcManager& Gc, JobQueue& JobQueue, const Configuration& Configuration, const DiskWriteBlocker* InDiskWriteBlocker) -: m_Log(logging::Get("z$")) -, m_DiskWriteBlocker(InDiskWriteBlocker) +: m_DiskWriteBlocker(InDiskWriteBlocker) , m_Gc(Gc) , m_JobQueue(JobQueue) , m_Configuration(Configuration) @@ -288,7 +287,7 @@ ZenCacheStore::ZenCacheStore(GcManager& Gc, SetLoggingConfig(m_Configuration.Logging); CreateDirectories(m_Configuration.BasePath); - ZEN_INFO("Initializing at '{}'", m_Configuration.BasePath); + ZEN_INFO("initializing cache store at '{}'", m_Configuration.BasePath); DirectoryContent DirContent; GetDirectoryContent(m_Configuration.BasePath, DirectoryContent::IncludeDirsFlag, DirContent); @@ -329,6 +328,7 @@ ZenCacheStore::ZenCacheStore(GcManager& Gc, ZenCacheStore::~ZenCacheStore() { + ZEN_INFO("closing cache store at '{}'", m_Configuration.BasePath); SetLoggingConfig({.EnableWriteLog = false, .EnableAccessLog = false}); m_Namespaces.clear(); } @@ -338,6 +338,10 @@ ZenCacheStore::LogWorker() { SetCurrentThreadName("ZenCacheStore::LogWorker"); + spdlog::logger& ZCacheLog(logging::Get("z$")); + + auto Log = [&ZCacheLog]() { return ZCacheLog; }; + std::vector<AccessLogItem> Items; while (true) { @@ -556,6 +560,7 @@ ZenCacheStore::DropNamespace(std::string_view InNamespace) void ZenCacheStore::Flush() { + ZEN_INFO("flushing cache store at '{}'", m_Configuration.BasePath); IterateNamespaces([&](std::string_view, ZenCacheNamespace& Store) { Store.Flush(); }); } |