mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-22 09:09:02 +01:00
Add exception message to logging when mapping fails due to an exception. (#1248)
* Add exception message to logging when mapping fails due to an exception.
* Revert "Add exception message to logging when mapping fails due to an exception."
This reverts commit eb7cf46c95.
* Fix loggers with improved exception logging.
This commit is contained in:
@@ -52,9 +52,9 @@ public class WireMockService : IWireMockService
|
||||
_logger.LogDebug("Admin[{0}] {1}", isAdminrequest, message);
|
||||
}
|
||||
|
||||
public void Error(string formatString, Exception exception)
|
||||
public void Error(string message, Exception exception)
|
||||
{
|
||||
_logger.LogError(formatString, exception.Message);
|
||||
_logger.LogError(exception, message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user