Skip to content

Commit e6d843c

Browse files
committed
Remove duplicate logs
1 parent 1ee9af4 commit e6d843c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/ServiceControl.AcceptanceTesting/NServiceBusAcceptanceTest.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,6 @@ public void TearDown()
5858
TestContext.Out.WriteLine($@"Context:
5959
{string.Join(Environment.NewLine, scenarioContext.GetType().GetProperties().Select(p => $"{p.Name} = {p.GetValue(scenarioContext, null)}"))}");
6060
// }
61-
62-
if (TestExecutionContext.CurrentContext.CurrentResult.ResultState == ResultState.Failure || TestExecutionContext.CurrentContext.CurrentResult.ResultState == ResultState.Error)
63-
{
64-
TestContext.Out.WriteLine(string.Empty);
65-
TestContext.Out.WriteLine($"Log entries (log level: {scenarioContext.LogLevel}):");
66-
TestContext.Out.WriteLine("--- Start log entries ---------------------------------------------------");
67-
foreach (var logEntry in scenarioContext.Logs)
68-
{
69-
TestContext.Out.WriteLine($"{logEntry.Timestamp:T} {logEntry.Level} {logEntry.Endpoint ?? TestContext.CurrentContext.Test.Name}: {logEntry.Message}");
70-
}
71-
TestContext.Out.WriteLine("--- End log entries ---------------------------------------------------");
72-
}
7361
}
7462
}
7563
}

0 commit comments

Comments
 (0)