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) { }