Skip to content

Commit cebf775

Browse files
committed
Removed unnecessary exception from test log.
1 parent e3e5dc6 commit cebf775

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/Serilog.Sinks.AzureTableStorageWithProperties.Tests/AzureTableStorageWithPropertiesSinkTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void WhenALoggerWritesToTheSinkItIsRetrievableFromTheTableWithProperties(
6161
logger.Information(exception, messageTemplate, "Properties", 1234, ' ');
6262

6363
var result = table.ExecuteQuery(new TableQuery().Take(1)).First();
64-
64+
6565
// Check the presence of same properties as in previous version
6666
Assert.Equal(messageTemplate, result.Properties["MessageTemplate"].StringValue);
6767
Assert.Equal("Information", result.Properties["Level"].StringValue);
@@ -88,11 +88,9 @@ public void WhenALoggerWritesToTheSinkWithANewlineInTheTemplateItIsRetrievable()
8888
.WriteTo.AzureTableStorageWithProperties(storageAccount)
8989
.CreateLogger();
9090

91-
var exception = new ArgumentException("Some exception");
92-
9391
const string messageTemplate = "Line 1\nLine2";
9492

95-
logger.Information(exception, messageTemplate);
93+
logger.Information(messageTemplate);
9694

9795
var result = table.ExecuteQuery(new TableQuery().Take(1)).FirstOrDefault();
9896

0 commit comments

Comments
 (0)