From 75e4b539a9fc9b2e52b3b5d49cd462077e9f22f9 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 30 Apr 2026 18:41:58 +0200 Subject: [PATCH] log solo debug (poi lo attivo in prod...) --- MP.IOC/Controllers/IOBController.cs | 9 +-------- MP.IOC/appsettings.Development.json | 2 +- MP.IOC/appsettings.json | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/MP.IOC/Controllers/IOBController.cs b/MP.IOC/Controllers/IOBController.cs index 3e452976..7df179a4 100644 --- a/MP.IOC/Controllers/IOBController.cs +++ b/MP.IOC/Controllers/IOBController.cs @@ -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) diff --git a/MP.IOC/appsettings.Development.json b/MP.IOC/appsettings.Development.json index 770d3e93..b9395333 100644 --- a/MP.IOC/appsettings.Development.json +++ b/MP.IOC/appsettings.Development.json @@ -2,7 +2,7 @@ "DetailedErrors": true, "Logging": { "LogLevel": { - "Default": "Information", + "Default": "Debug", "Microsoft.AspNetCore": "Warning" } } diff --git a/MP.IOC/appsettings.json b/MP.IOC/appsettings.json index d7c5727c..93bee530 100644 --- a/MP.IOC/appsettings.json +++ b/MP.IOC/appsettings.json @@ -1,7 +1,7 @@ { "Logging": { "LogLevel": { - "Default": "Information", + "Default": "Debug", "Microsoft.AspNetCore": "Warning", "Microsoft.EntityFrameworkCore.Database.Command": "Warning", "Microsoft.EntityFrameworkCore.Infrastructure": "Warning",