[BGService]新增log訊息

This commit is contained in:
張家睿 2024-02-29 14:54:04 +08:00
parent 788989a0e2
commit 2dde2d9f15

View File

@ -691,7 +691,7 @@ namespace BackendWorkerService.Quartz.Jobs
{
await task_Detail.WorkFail("ArchiveElectricMeterDayJob", "Day", exception.ToString());
logger.LogError("【ArchiveElectricMeterDayJob】【天歸檔】【任務失敗】");
logger.LogError("【ArchiveElectricMeterDayJob】【天歸檔】【任務失敗】[Exception]{0}", exception.ToString());
logger.LogError("【ArchiveElectricMeterDayJob】【天歸檔】【任務失敗】[Exception]{0}, {1}", exception.ToString(), "device_number = " + device_number);
logger.LogError(await backgroundServiceMsSqlRepository.GetDbAllString());
}
finally
@ -1691,7 +1691,7 @@ namespace BackendWorkerService.Quartz.Jobs
{
await task_Detail.WorkFail("ArchiveElectricMeterDayJob", "Month", exception.ToString());
logger.LogError("【ArchiveElectricMeterDayJob】【月歸檔】【任務失敗】");
logger.LogError("【ArchiveElectricMeterDayJob】【月歸檔】【任務失敗】[Exception]{0}", exception.ToString());
logger.LogError("【ArchiveElectricMeterDayJob】【月歸檔】【任務失敗】[Exception]{0}, {1}", exception.ToString(), "device_number = " + device_number);
}
finally
{