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;