From 9fd388c4eaab90862764e97f47f92df816b8ba39 Mon Sep 17 00:00:00 2001 From: H Vs Date: Mon, 11 Nov 2024 17:58:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E5=99=A8=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HealthMonitor.WebApi/Worker.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/HealthMonitor.WebApi/Worker.cs b/HealthMonitor.WebApi/Worker.cs index eb34af7..02d5422 100644 --- a/HealthMonitor.WebApi/Worker.cs +++ b/HealthMonitor.WebApi/Worker.cs @@ -298,7 +298,7 @@ namespace HealthMonitor.WebApi if (!string.IsNullOrEmpty(trigger)) { var triggerHeartRate = JsonConvert.DeserializeObject(trigger); - using (_logger.BeginScope(new Dictionary { ["RequestId"] = triggerHeartRate?.MessageId! })) + using (_logger.BeginScope(new Dictionary { ["RequestId"] = $"FREQ-HR-{triggerHeartRate?.MessageId!}" })) { var watchConfig = await _deviceCacheMgr.GetGpsDeviceWatchConfigCacheObjectBySerialNoAsync(imeiDel, "0067"); _logger.LogInformation($"{imeiDel}高频结束后,延迟计算高频数据产生的胎心数据"); @@ -376,7 +376,10 @@ namespace HealthMonitor.WebApi } else { - _logger.LogWarning($"{imeiDel} 超过12条连续正常,高频不停止,暂不处理"); + _logger.LogWarning($"{imeiDel} 超过12条连续正常,高频不停止,暂不处理" + + $"\n 高频首条心率ID:{phrFreqstatus.MessageId}-时间:{phrFreqstatus.LastUpdate.ToString("yyyy-MM-dd HH:mm:ss")}" + + $"\n 触发计算高频心率ID:{triggerHeartRate?.MessageId}-时间:{triggerHeartRate?.LastUpdate?.ToString("yyyy-MM-dd HH:mm:ss")}"); + await _deviceCacheMgr.DelPregnancyHeartRateFreqStatusAsync(imeiDel); } } else