Browse Source

feat(auditing): 索引初始化失败记录日志

pull/405/head
cKey 4 years ago
parent
commit
4a6efab578
  1. 3
      aspnet-core/modules/auditing/LINGYUN.Abp.AuditLogging.Elasticsearch/LINGYUN/Abp/AuditLogging/Elasticsearch/IndexInitializer.cs

3
aspnet-core/modules/auditing/LINGYUN.Abp.AuditLogging.Elasticsearch/LINGYUN/Abp/AuditLogging/Elasticsearch/IndexInitializer.cs

@ -98,7 +98,8 @@ namespace LINGYUN.Abp.AuditLogging.Elasticsearch
.Date(p => p.Name(n => n.CreationTime).Format(dateTimeFormat)))));
if (indexCreateResponse.IsValid)
{
Logger.LogWarning("Failed to initialize index and security log may not be retrieved.");
Logger.LogWarning(indexCreateResponse.OriginalException.ToString());
}
}
}

Loading…
Cancel
Save