From 4a6efab578e8cf0f8d9bfeecc88b3e3a40032951 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Fri, 26 Nov 2021 21:19:34 +0800 Subject: [PATCH] =?UTF-8?q?feat(auditing):=20=E7=B4=A2=E5=BC=95=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E5=A4=B1=E8=B4=A5=E8=AE=B0=E5=BD=95=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LINGYUN/Abp/AuditLogging/Elasticsearch/IndexInitializer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); } } }