Browse Source

定时器增加日志

datasub12_fetal_heart_rate_1
H Vs 1 week ago
parent
commit
9fd388c4ea
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      HealthMonitor.WebApi/Worker.cs

+ 5
- 2
HealthMonitor.WebApi/Worker.cs View File

@@ -298,7 +298,7 @@ namespace HealthMonitor.WebApi
if (!string.IsNullOrEmpty(trigger)) if (!string.IsNullOrEmpty(trigger))
{ {
var triggerHeartRate = JsonConvert.DeserializeObject<HisGpsHeartRate>(trigger); var triggerHeartRate = JsonConvert.DeserializeObject<HisGpsHeartRate>(trigger);
using (_logger.BeginScope(new Dictionary<string, object> { ["RequestId"] = triggerHeartRate?.MessageId! }))
using (_logger.BeginScope(new Dictionary<string, object> { ["RequestId"] = $"FREQ-HR-{triggerHeartRate?.MessageId!}" }))
{ {
var watchConfig = await _deviceCacheMgr.GetGpsDeviceWatchConfigCacheObjectBySerialNoAsync(imeiDel, "0067"); var watchConfig = await _deviceCacheMgr.GetGpsDeviceWatchConfigCacheObjectBySerialNoAsync(imeiDel, "0067");
_logger.LogInformation($"{imeiDel}高频结束后,延迟计算高频数据产生的胎心数据"); _logger.LogInformation($"{imeiDel}高频结束后,延迟计算高频数据产生的胎心数据");
@@ -376,7 +376,10 @@ namespace HealthMonitor.WebApi
} }
else 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 else


Loading…
Cancel
Save