-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed StackTrace replacement in tests
- Loading branch information
Showing
4 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...als/LokiJsonTextFormatterTests.AggregateExceptionShouldBeSerializedCorrectly.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"streams":[{"stream":{},"values":[["<unixepochinnanoseconds>","{\u0022Message\u0022:\u0022An error occured\u0022,\u0022MessageTemplate\u0022:\u0022An error occured\u0022,\u0022level\u0022:\u0022error\u0022,\u0022Exception\u0022:{\u0022Type\u0022:\u0022System.AggregateException\u0022,\u0022Message\u0022:\u0022AggregateException (Exception 0) (Exception 1) (Exception 2) (Exception 3) (Exception 4)\u0022,\u0022StackTrace\u0022:\u0022 at Serilog.Sinks.Grafana.Loki.Tests.FormatterTests.LokiJsonTextFormatterTests.AggregateExceptionShouldBeSerializedCorrectly() in <path>\\\\Serilog.Sinks.Grafana.Loki\\\\test\\\\Serilog.Sinks.Grafana.Loki.Tests\\\\FormatterTests\\\\LokiJsonTextFormatterTests.cs:line 167\u0022,\u0022InnerExceptions\u0022:[{\u0022Type\u0022:\u0022System.Exception\u0022,\u0022Message\u0022:\u0022Exception 0\u0022,\u0022StackTrace\u0022:\u0022 at Serilog.Sinks.Grafana.Loki.Tests.FormatterTests.LokiJsonTextFormatterTests.AggregateExceptionShouldBeSerializedCorrectly() in <path>\\\\Serilog.Sinks.Grafana.Loki\\\\test\\\\Serilog.Sinks.Grafana.Loki.Tests\\\\FormatterTests\\\\LokiJsonTextFormatterTests.cs:line 159\u0022},{\u0022Type\u0022:\u0022System.Exception\u0022,\u0022Message\u0022:\u0022Exception 1\u0022,\u0022StackTrace\u0022:\u0022 at Serilog.Sinks.Grafana.Loki.Tests.FormatterTests.LokiJsonTextFormatterTests.AggregateExceptionShouldBeSerializedCorrectly() in <path>\\\\Serilog.Sinks.Grafana.Loki\\\\test\\\\Serilog.Sinks.Grafana.Loki.Tests\\\\FormatterTests\\\\LokiJsonTextFormatterTests.cs:line 159\u0022},{\u0022Type\u0022:\u0022System.Exception\u0022,\u0022Message\u0022:\u0022Exception 2\u0022,\u0022StackTrace\u0022:\u0022 at Serilog.Sinks.Grafana.Loki.Tests.FormatterTests.LokiJsonTextFormatterTests.AggregateExceptionShouldBeSerializedCorrectly() in <path>\\\\Serilog.Sinks.Grafana.Loki\\\\test\\\\Serilog.Sinks.Grafana.Loki.Tests\\\\FormatterTests\\\\LokiJsonTextFormatterTests.cs:line 159\u0022},{\u0022Type\u0022:\u0022System.Exception\u0022,\u0022Message\u0022:\u0022Exception 3\u0022,\u0022StackTrace\u0022:\u0022 at Serilog.Sinks.Grafana.Loki.Tests.FormatterTests.LokiJsonTextFormatterTests.AggregateExceptionShouldBeSerializedCorrectly() in <path>\\\\Serilog.Sinks.Grafana.Loki\\\\test\\\\Serilog.Sinks.Grafana.Loki.Tests\\\\FormatterTests\\\\LokiJsonTextFormatterTests.cs:line 159\u0022},{\u0022Type\u0022:\u0022System.Exception\u0022,\u0022Message\u0022:\u0022Exception 4\u0022,\u0022StackTrace\u0022:\u0022 at Serilog.Sinks.Grafana.Loki.Tests.FormatterTests.LokiJsonTextFormatterTests.AggregateExceptionShouldBeSerializedCorrectly() in <path>\\\\Serilog.Sinks.Grafana.Loki\\\\test\\\\Serilog.Sinks.Grafana.Loki.Tests\\\\FormatterTests\\\\LokiJsonTextFormatterTests.cs:line 159\u0022},]}}"]]}]} | ||
{"streams":[{"stream":{},"values":[["<unixepochinnanoseconds>","{\u0022Message\u0022:\u0022An error occured\u0022,\u0022MessageTemplate\u0022:\u0022An error occured\u0022,\u0022level\u0022:\u0022error\u0022,\u0022Exception\u0022:{\u0022Type\u0022:\u0022System.AggregateException\u0022,\u0022Message\u0022:\u0022AggregateException (Exception 0) (Exception 1) (Exception 2) (Exception 3) (Exception 4)\u0022,\u0022StackTrace<stack-trace>}}"]]}]} |
2 changes: 1 addition & 1 deletion
2
...tFormatterTests.MessagePropertyForExceptionsWithoutMessageShouldNotBeCreated.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"streams":[{"stream":{},"values":[["<unixepochinnanoseconds>","{\u0022Message\u0022:\u0022An error occured\u0022,\u0022MessageTemplate\u0022:\u0022An error occured\u0022,\u0022level\u0022:\u0022error\u0022,\u0022Exception\u0022:{\u0022Type\u0022:\u0022System.Exception\u0022,\u0022StackTrace\u0022:\u0022 at Serilog.Sinks.Grafana.Loki.Tests.FormatterTests.LokiJsonTextFormatterTests.MessagePropertyForExceptionsWithoutMessageShouldNotBeCreated() in <path>\\\\Serilog.Sinks.Grafana.Loki\\\\test\\\\Serilog.Sinks.Grafana.Loki.Tests\\\\FormatterTests\\\\LokiJsonTextFormatterTests.cs:line 116\u0022}}"]]}]} | ||
{"streams":[{"stream":{},"values":[["<unixepochinnanoseconds>","{\u0022Message\u0022:\u0022An error occured\u0022,\u0022MessageTemplate\u0022:\u0022An error occured\u0022,\u0022level\u0022:\u0022error\u0022,\u0022Exception\u0022:{\u0022Type\u0022:\u0022System.Exception\u0022,\u0022StackTrace<stack-trace>}}"]]}]} |
2 changes: 1 addition & 1 deletion
2
...rovals/LokiJsonTextFormatterTests.SimpleExceptionShouldBeSerializedCorrectly.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"streams":[{"stream":{},"values":[["<unixepochinnanoseconds>","{\u0022Message\u0022:\u0022An error occured\u0022,\u0022MessageTemplate\u0022:\u0022An error occured\u0022,\u0022level\u0022:\u0022error\u0022,\u0022Exception\u0022:{\u0022Type\u0022:\u0022System.Exception\u0022,\u0022Message\u0022:\u0022Exception message\u0022,\u0022StackTrace\u0022:\u0022 at Serilog.Sinks.Grafana.Loki.Tests.FormatterTests.LokiJsonTextFormatterTests.SimpleExceptionShouldBeSerializedCorrectly() in <path>\\\\Serilog.Sinks.Grafana.Loki\\\\test\\\\Serilog.Sinks.Grafana.Loki.Tests\\\\FormatterTests\\\\LokiJsonTextFormatterTests.cs:line 79\u0022}}"]]}]} | ||
{"streams":[{"stream":{},"values":[["<unixepochinnanoseconds>","{\u0022Message\u0022:\u0022An error occured\u0022,\u0022MessageTemplate\u0022:\u0022An error occured\u0022,\u0022level\u0022:\u0022error\u0022,\u0022Exception\u0022:{\u0022Type\u0022:\u0022System.Exception\u0022,\u0022Message\u0022:\u0022Exception message\u0022,\u0022StackTrace<stack-trace>}}"]]}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters