log solo debug (poi lo attivo in prod...)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"DetailedErrors": true,
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Default": "Debug",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Default": "Debug",
|
||||
"Microsoft.AspNetCore": "Warning",
|
||||
"Microsoft.EntityFrameworkCore.Database.Command": "Warning",
|
||||
"Microsoft.EntityFrameworkCore.Infrastructure": "Warning",
|
||||
|
||||
Reference in New Issue
Block a user