From afa37f5ab15344d010e0700c5d9632db44de3369 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 21 Jun 2016 23:55:21 -0400 Subject: [PATCH] Log errors with full exception --- src/Api/Utilities/ExceptionHandlerFilterAttribute.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Api/Utilities/ExceptionHandlerFilterAttribute.cs b/src/Api/Utilities/ExceptionHandlerFilterAttribute.cs index 4d0c4690a..1f7b10d91 100644 --- a/src/Api/Utilities/ExceptionHandlerFilterAttribute.cs +++ b/src/Api/Utilities/ExceptionHandlerFilterAttribute.cs @@ -49,7 +49,8 @@ namespace Bit.Api.Utilities else { var logger = context.HttpContext.RequestServices.GetRequiredService>(); - logger.LogError(exception.Message, exception); + logger.LogError(null, exception, exception.Message); + logger.LogError(null, exception, exception.Message); errorModel.Message = "An unhandled server error has occured."; context.HttpContext.Response.StatusCode = 500;