From 3d02c0e4bda63c661838d49377ad2bc4080a63a6 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Fri, 20 Oct 2023 13:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=9C=E7=94=A8AbpSecurityLogOptions?= =?UTF-8?q?=E5=92=8CAbpAuditingOptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SettleAccountHttpApiHostModule.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccountHttpApiHostModule.cs b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccountHttpApiHostModule.cs index f0dbc377..e8063213 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccountHttpApiHostModule.cs +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccountHttpApiHostModule.cs @@ -20,6 +20,7 @@ using Volo.Abp.AspNetCore.ExceptionHandling; using Volo.Abp.AspNetCore.Mvc; using Volo.Abp.AspNetCore.Mvc.ExceptionHandling; using Volo.Abp.AspNetCore.Serilog; +using Volo.Abp.Auditing; using Volo.Abp.AuditLogging.EntityFrameworkCore; using Volo.Abp.Autofac; using Volo.Abp.BackgroundJobs.Hangfire; @@ -33,6 +34,7 @@ using Volo.Abp.Localization; using Volo.Abp.Modularity; using Volo.Abp.MultiTenancy; using Volo.Abp.PermissionManagement.EntityFrameworkCore; +using Volo.Abp.SecurityLog; using Volo.Abp.SettingManagement.EntityFrameworkCore; using Volo.Abp.Threading; using Win.Sfs.Shared.Constant; @@ -136,6 +138,9 @@ namespace Win.Sfs.SettleAccount // options.DefaultTimeout = 864000; //10 days (as seconds) //}); + context.Services.Configure(o => o.IsEnabled = false); + context.Services.Configure(o => o.IsEnabled = false); + context.Services.Configure(x => { x.ValueLengthLimit = int.MaxValue; @@ -218,7 +223,6 @@ namespace Win.Sfs.SettleAccount } options.Filters.Add(typeof(CustomExceptionFilter)); }); - } private void ConfigureMultiTenancy() @@ -409,6 +413,7 @@ namespace Win.Sfs.SettleAccount { this.logger = logger; } + public void OnException(ExceptionContext context) { logger.LogError(new EventId(context.Exception.HResult), context.Exception, context.Exception.Message);