diff --git a/aspnet-core/modules/auditing/LINGYUN.Abp.AuditLogging.Elasticsearch/LINGYUN/Abp/AuditLogging/Elasticsearch/IndexInitializer.cs b/aspnet-core/modules/auditing/LINGYUN.Abp.AuditLogging.Elasticsearch/LINGYUN/Abp/AuditLogging/Elasticsearch/IndexInitializer.cs index cd375483a..079394ed1 100644 --- a/aspnet-core/modules/auditing/LINGYUN.Abp.AuditLogging.Elasticsearch/LINGYUN/Abp/AuditLogging/Elasticsearch/IndexInitializer.cs +++ b/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()); } } }