From 4cf148614ae820197a497ec6b63b28368c5f9ad2 Mon Sep 17 00:00:00 2001 From: Oscar Mora Date: Tue, 9 Apr 2019 14:33:21 -0700 Subject: [PATCH] Fix #232 Pass flag formatStackTraceAsArray to base class --- .../ExceptionAsObjectJsonFormatter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serilog.Formatting.Elasticsearch/ExceptionAsObjectJsonFormatter.cs b/src/Serilog.Formatting.Elasticsearch/ExceptionAsObjectJsonFormatter.cs index 6430c7d5..18eab96b 100644 --- a/src/Serilog.Formatting.Elasticsearch/ExceptionAsObjectJsonFormatter.cs +++ b/src/Serilog.Formatting.Elasticsearch/ExceptionAsObjectJsonFormatter.cs @@ -51,7 +51,7 @@ public ExceptionAsObjectJsonFormatter(bool omitEnclosingObject = false, IElasticsearchSerializer serializer = null, bool inlineFields = false, bool formatStackTraceAsArray = false) - : base(omitEnclosingObject, closingDelimiter, renderMessage, formatProvider, serializer, inlineFields, formatStackTraceAsArray) + : base(omitEnclosingObject, closingDelimiter, renderMessage, formatProvider, serializer, inlineFields, true, formatStackTraceAsArray) { }