Ver código fonte

定时器增加日志

datasub12_fetal_heart_rate_1
H Vs 1 semana atrás
pai
commit
9fd388c4ea
1 arquivos alterados com 5 adições e 2 exclusões
  1. +5
    -2
      HealthMonitor.WebApi/Worker.cs

+ 5
- 2
HealthMonitor.WebApi/Worker.cs Ver arquivo

@@ -298,7 +298,7 @@ namespace HealthMonitor.WebApi
if (!string.IsNullOrEmpty(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");
_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


Carregando…
Cancelar
Salvar