|
|
@ -2,8 +2,6 @@ using System; |
|
|
using System.Linq; |
|
|
using System.Linq; |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
using Microsoft.AspNetCore.Http; |
|
|
using Microsoft.AspNetCore.Http; |
|
|
using Microsoft.AspNetCore.Mvc.Abstractions; |
|
|
|
|
|
using Microsoft.AspNetCore.Mvc.Controllers; |
|
|
|
|
|
using Microsoft.Extensions.Options; |
|
|
using Microsoft.Extensions.Options; |
|
|
using Volo.Abp.Auditing; |
|
|
using Volo.Abp.Auditing; |
|
|
using Volo.Abp.DependencyInjection; |
|
|
using Volo.Abp.DependencyInjection; |
|
|
@ -64,13 +62,6 @@ namespace Volo.Abp.AspNetCore.Auditing |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var endpoint = httpContext.GetEndpoint(); |
|
|
|
|
|
var actionDescriptor = endpoint?.Metadata.GetMetadata<ActionDescriptor>(); |
|
|
|
|
|
if (!(actionDescriptor is ControllerActionDescriptor)) |
|
|
|
|
|
{ |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (Options.AlwaysLogOnException && hasError) |
|
|
if (Options.AlwaysLogOnException && hasError) |
|
|
{ |
|
|
{ |
|
|
return true; |
|
|
return true; |
|
|
|