diff options
author | vnugent <public@vaughnnugent.com> | 2024-03-24 20:55:01 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-03-24 20:55:01 -0400 |
commit | a504435151efbe1d19404fa44859b15c629f6d5d (patch) | |
tree | 4eb1bd863074e64922e35ff730f354ac40528698 /plugins/ObjectCacheServer/src | |
parent | c74440ff12daa03cc4b7792d0c3baad46a11a465 (diff) |
chore: Updated compose and added some more logging
Diffstat (limited to 'plugins/ObjectCacheServer/src')
-rw-r--r-- | plugins/ObjectCacheServer/src/Endpoints/ConnectEndpoint.cs | 4 | ||||
-rw-r--r-- | plugins/ObjectCacheServer/src/ObjectCacheSystemState.cs | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/plugins/ObjectCacheServer/src/Endpoints/ConnectEndpoint.cs b/plugins/ObjectCacheServer/src/Endpoints/ConnectEndpoint.cs index 8368d3a..42f406a 100644 --- a/plugins/ObjectCacheServer/src/Endpoints/ConnectEndpoint.cs +++ b/plugins/ObjectCacheServer/src/Endpoints/ConnectEndpoint.cs @@ -244,6 +244,8 @@ namespace VNLib.Data.Caching.ObjectCache.Server.Endpoints { WsUserState state = wss.UserState!; + Log.Debug("Client established websocket connection {sid}", wss.SocketID); + //Notify peers of new connection Peers.OnPeerConnected(state); @@ -307,7 +309,7 @@ namespace VNLib.Data.Caching.ObjectCache.Server.Endpoints //Notify monitor of disconnect Peers.OnPeerDisconnected(state); - Log.Debug("Server websocket exited"); + Log.Debug("Client websocket disconnected {sid}", wss.SocketID); } 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), |