diff --git a/NineChronicles.Headless/GraphQLService.cs b/NineChronicles.Headless/GraphQLService.cs index de3b3b115..d62efad09 100644 --- a/NineChronicles.Headless/GraphQLService.cs +++ b/NineChronicles.Headless/GraphQLService.cs @@ -160,6 +160,11 @@ public void ConfigureServices(IServiceCollection services) { Log.Error(context.Exception.ToString()); Log.Error(context.ErrorMessage); + + context.Exception.Data["exception"] = context.Exception.GetType().ToString(); + context.Exception.Data["message"] = context.Exception.Message; + context.Exception.Data["innerException"] = context.Exception.InnerException?.GetType().ToString(); + context.Exception.Data["stackTrace"] = context.Exception.StackTrace; }; }) .AddSystemTextJson()