diff --git a/NineChronicles.Headless/Middleware/GrpcCaptureMiddleware.cs b/NineChronicles.Headless/Middleware/GrpcCaptureMiddleware.cs index b18fba078..23f5c0ba3 100644 --- a/NineChronicles.Headless/Middleware/GrpcCaptureMiddleware.cs +++ b/NineChronicles.Headless/Middleware/GrpcCaptureMiddleware.cs @@ -14,8 +14,8 @@ namespace NineChronicles.Headless.Middleware { public class GrpcCaptureMiddleware : Interceptor { - private const int MultiAccountManagementTime = 15; - private const int MultiAccountTxInterval = 15; + private const int MultiAccountManagementTime = 30; + private const int MultiAccountTxInterval = 30; private static Dictionary _multiAccountTxIntervalTracker = new(); private static Dictionary _multiAccountList = new(); private readonly ILogger _logger; @@ -167,12 +167,6 @@ public override async Task UnaryServerHandler( _logger.Information($"[GRPC-REQUEST-CAPTURE] Agent {agent} is in managed status for the next {MultiAccountManagementTime - (DateTimeOffset.Now - _multiAccountList[agent]).Minutes} minutes."); } } - - _logger.Information( - "[GRPC-REQUEST-CAPTURE] IP: {IP} List Count: {Count}, AgentAddresses: {Agent}", - ipAddress, - _ipSignerList[ipAddress].Count, - _ipSignerList[ipAddress]); } _logger.Information( "[GRPC-REQUEST-CAPTURE] IP: {IP} Method: {Method} Agent: {Agent} Action: {Action}", diff --git a/NineChronicles.Headless/Middleware/HttpCaptureMiddleware.cs b/NineChronicles.Headless/Middleware/HttpCaptureMiddleware.cs index 8f1dd7f80..4c9f062cd 100644 --- a/NineChronicles.Headless/Middleware/HttpCaptureMiddleware.cs +++ b/NineChronicles.Headless/Middleware/HttpCaptureMiddleware.cs @@ -14,8 +14,8 @@ namespace NineChronicles.Headless.Middleware { public class HttpCaptureMiddleware { - private const int MultiAccountManagementTime = 15; - private const int MultiAccountTxInterval = 15; + private const int MultiAccountManagementTime = 30; + private const int MultiAccountTxInterval = 30; private static Dictionary _multiAccountTxIntervalTracker = new(); private static Dictionary _multiAccountList = new(); private readonly RequestDelegate _next; @@ -127,12 +127,6 @@ public async Task InvokeAsync(HttpContext context) _logger.Information($"[GRAPHQL-REQUEST-CAPTURE] Agent {agent} is in managed status for the next {MultiAccountManagementTime - (DateTimeOffset.Now - _multiAccountList[agent]).Minutes} minutes."); } } - - _logger.Information( - "[GRAPHQL-REQUEST-CAPTURE] IP: {IP} List Count: {Count}, AgentAddresses: {Agent}", - context.Connection.RemoteIpAddress!.ToString(), - _ipSignerList[context.Connection.RemoteIpAddress!.ToString()].Count, - _ipSignerList[context.Connection.RemoteIpAddress!.ToString()]); } } else