修改输出日志展示具体出问题的
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
9669032e6c
commit
7f1232e2ff
|
@ -915,7 +915,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
catch (Exception ex)
|
||||
{
|
||||
|
||||
var errorMsg = $"{DateTime.Now}❌ 失败: {ex.Message}";
|
||||
var errorMsg = $"{DateTime.Now} ❌ 失败: {ex.Message} | InstanceId={item.InstanceId}, Path={item.Path}";
|
||||
|
||||
Console.WriteLine(errorMsg);
|
||||
|
||||
await File.AppendAllTextAsync(outputErrorFile, errorMsg + Environment.NewLine);
|
||||
|
@ -926,7 +927,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
double percent = processed * 100.0 / total;
|
||||
|
||||
// 每提升 5% 或完成时输出
|
||||
if (percent - lastPercent >= 5.0 || processed == total)
|
||||
if (percent - lastPercent >= 2.0 || processed == total)
|
||||
{
|
||||
lastPercent = percent;
|
||||
Console.WriteLine($"{DateTime.Now} 进度: {processed}/{total} ({percent:F2}%)");
|
||||
|
|
Loading…
Reference in New Issue