From 1660919521bdcf4390b6df400aa5e356dedbb5bf Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 7 Apr 2026 09:27:51 +0200 Subject: [PATCH] update in debug delle chaimate --- MP.IOC/Services/RouteManager.cs | 7 +++---- MP.IOC/appsettings.json | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/MP.IOC/Services/RouteManager.cs b/MP.IOC/Services/RouteManager.cs index 9ff7926a..40176fc1 100644 --- a/MP.IOC/Services/RouteManager.cs +++ b/MP.IOC/Services/RouteManager.cs @@ -61,7 +61,7 @@ namespace MP.IOC.Services relativePath = idx >= 0 ? fullPath[(idx + "/RIOB/".Length)..] : fullPath.TrimStart('/'); } - Log.Info($"PathBase={context.Request.PathBase} | Path={context.Request.Path} | relativePath={relativePath}"); + Log.Debug($"PathBase={context.Request.PathBase} | Path={context.Request.Path} | relativePath={relativePath}"); // da calcolare metodo... string metodo = "undef"; @@ -77,7 +77,7 @@ namespace MP.IOC.Services metodo = relativePath; } } - Log.Info($"Metodo: {metodo}"); + Log.Debug($"Metodo: {metodo}"); var (oldW, newW) = _weightProvider.GetWeightsFor(metodo); var pickNew = DecideByWeights(oldW, newW); @@ -110,8 +110,7 @@ namespace MP.IOC.Services // opzionale: se vuoi che PathBase sia vuoto per il backend, impostalo così context.Request.PathBase = PathString.Empty; - Log.Info("Forwarding to base {DestBase} with forwarded path {ForwardedPath} (original PathBase={PathBase} Path={Path})", - destBase, context.Request.Path, originalPathBase, originalPath); + Log.Info($"Forwarding to base {destBase} with forwarded path {context.Request.Path} | original PathBase:{originalPathBase} | Path={originalPath})"); var requestOptions = new ForwarderRequestConfig { ActivityTimeout = TimeSpan.FromSeconds(100) }; var error = await _forwarder.SendAsync(context, destBase, _httpClientInvoker, requestOptions, _transformer, context.RequestAborted); diff --git a/MP.IOC/appsettings.json b/MP.IOC/appsettings.json index 042c4fef..8ee72c39 100644 --- a/MP.IOC/appsettings.json +++ b/MP.IOC/appsettings.json @@ -70,8 +70,7 @@ } }, "RouteMan": { - "FlushIntervalSeconds": 10, - //"FlushIntervalSeconds": 60, + "FlushIntervalSeconds": 60, //"FlushIntervalSeconds": 300, "DefaultWeightOld": 100, "DefaultWeightNew": 0