update in debug delle chaimate

This commit is contained in:
Samuele Locatelli
2026-04-07 09:27:51 +02:00
parent 80b87cad63
commit 1660919521
2 changed files with 4 additions and 6 deletions
+3 -4
View File
@@ -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);
+1 -2
View File
@@ -70,8 +70,7 @@
}
},
"RouteMan": {
"FlushIntervalSeconds": 10,
//"FlushIntervalSeconds": 60,
"FlushIntervalSeconds": 60,
//"FlushIntervalSeconds": 300,
"DefaultWeightOld": 100,
"DefaultWeightNew": 0