From febc651f617d148607f4971bd8f8679491676cfa Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Thu, 5 May 2022 19:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Serilog/RequestResponseLoggingMiddleware.cs | 14 +++++++++----- .../Service/QC/QCOperationService.cs | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/IRaCIS.Core.API/_PipelineExtensions/Serilog/RequestResponseLoggingMiddleware.cs b/IRaCIS.Core.API/_PipelineExtensions/Serilog/RequestResponseLoggingMiddleware.cs index 7df68152e..79559f5dc 100644 --- a/IRaCIS.Core.API/_PipelineExtensions/Serilog/RequestResponseLoggingMiddleware.cs +++ b/IRaCIS.Core.API/_PipelineExtensions/Serilog/RequestResponseLoggingMiddleware.cs @@ -37,12 +37,16 @@ namespace IRaCIS.Core.API._PipelineExtensions.Serilog } else { - var requestBodyPayload = await ReadRequestBody(context.Request); - using (LogContext.PushProperty("RequestBody", requestBodyPayload)) - { - //await _next.Invoke(context); - } + await _next.Invoke(context); + + //var requestBodyPayload = await ReadRequestBody(context.Request); + + //using (LogContext.PushProperty("RequestBody", requestBodyPayload)) + //{ + // //await _next.Invoke() + // await _next.Invoke(context); + //} } //var request = context.Request; diff --git a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs index 4192bcbd5..5c40d4567 100644 --- a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs @@ -917,7 +917,7 @@ namespace IRaCIS.Core.Application.Image.QA } // 移动不进去 - await _trialRepository.AddListInspectionRecordAsync(datas); + //await _trialRepository.AddListInspectionRecordAsync(datas); await _repository.SaveChangesAsync(); return ResponseOutput.Ok(); }