Log exception when (static) mapping file cannot be read (#1202)

This commit is contained in:
Stef Heyenrath
2024-10-29 19:52:31 +01:00
committed by GitHub
parent 214fb539ec
commit 3693d6a676
4 changed files with 7 additions and 7 deletions

View File

@@ -52,9 +52,9 @@ public class WireMockConsoleLogger : IWireMockLogger
}
/// <see cref="IWireMockLogger.Error(string, Exception)"/>
public void Error(string formatString, Exception exception)
public void Error(string message, Exception exception)
{
Console.WriteLine(Format("Error", formatString, exception.Message));
Console.WriteLine(Format("Error", $"{message} {{0}}", exception.Message));
if (exception is AggregateException ae)
{

View File

@@ -36,7 +36,7 @@ public class WireMockNullLogger : IWireMockLogger
}
/// <see cref="IWireMockLogger.Error(string, Exception)"/>
public void Error(string formatString, Exception exception)
public void Error(string message, Exception exception)
{
// Log nothing
}