log solo debug (poi lo attivo in prod...)

This commit is contained in:
Samuele Locatelli
2026-04-30 18:41:58 +02:00
parent c4aa1a2990
commit 75e4b539a9
3 changed files with 3 additions and 10 deletions
+1 -8
View File
@@ -884,14 +884,7 @@ namespace MP.IOC.Controllers
answ = await IOCService.ProcessInputAsync(id, valore, dtEve, dtCurr, cnt);
//answ = await DService.ProcessInputAsync(id, valore, dtEve, dtCurr, cnt);
sw.Stop();
if (sw.Elapsed.TotalMilliseconds > 40)
{
Log.Info($"Input | elapsed: {sw.Elapsed.TotalMilliseconds:N1} | id: {id} | val: {valore} | cnt: {cnt}");
}
else
{
Log.Debug($"Input | elapsed: {sw.Elapsed.TotalMilliseconds:N1} | id: {id} | val: {valore} | cnt: {cnt}");
}
Log.Debug($"Input | elapsed: {sw.Elapsed.TotalMilliseconds:N1} | id: {id} | val: {valore} | cnt: {cnt}");
return Ok(answ);
}
catch (Exception exc)
+1 -1
View File
@@ -2,7 +2,7 @@
"DetailedErrors": true,
"Logging": {
"LogLevel": {
"Default": "Information",
"Default": "Debug",
"Microsoft.AspNetCore": "Warning"
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Default": "Debug",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore.Database.Command": "Warning",
"Microsoft.EntityFrameworkCore.Infrastructure": "Warning",