diff options
Diffstat (limited to 'plugins/ObjectCacheServer/src/ObjectCacheSystemState.cs')
-rw-r--r-- | plugins/ObjectCacheServer/src/ObjectCacheSystemState.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/ObjectCacheServer/src/ObjectCacheSystemState.cs b/plugins/ObjectCacheServer/src/ObjectCacheSystemState.cs index f8ce8a9..3b3e2c0 100644 --- a/plugins/ObjectCacheServer/src/ObjectCacheSystemState.cs +++ b/plugins/ObjectCacheServer/src/ObjectCacheSystemState.cs @@ -195,8 +195,14 @@ namespace VNLib.Data.Caching.ObjectCache.Server Log = plugin.Log.CreateScope(CacheConstants.LogScopes.BlobCacheListener), MemoryManager = new SharedHeapFBMMemoryManager(SharedCacheHeap), EnableMessageChecksums = MemoryConfiguration.EnableChecksums, + LogTransactions = plugin.IsDebug() || plugin.HostArgs.HasArgument("--log-cache-events") }; + if (conf.LogTransactions) + { + plugin.Log.Information("Verbose cache event logging enabled"); + } + //Endpoint only allows for a single reader Listener = new( plugin.LoadMemoryCacheSystem(config, manager, MemoryConfiguration), |