update in debug delle chaimate
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -70,8 +70,7 @@
|
||||
}
|
||||
},
|
||||
"RouteMan": {
|
||||
"FlushIntervalSeconds": 10,
|
||||
//"FlushIntervalSeconds": 60,
|
||||
"FlushIntervalSeconds": 60,
|
||||
//"FlushIntervalSeconds": 300,
|
||||
"DefaultWeightOld": 100,
|
||||
"DefaultWeightNew": 0
|
||||
|
||||
Reference in New Issue
Block a user