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:
JvE-iO
2025-01-30 10:59:22 +01:00
committed by GitHub
parent 52b00d74a9
commit 29bf9b42f8
3 changed files with 7 additions and 7 deletions

View File

@@ -51,9 +51,9 @@ public sealed class TUnitWireMockLogger : IWireMockLogger
}
/// <inheritdoc />
public void Error(string formatString, Exception exception)
public void Error(string message, Exception exception)
{
_tUnitLogger.LogError(Format("Error", formatString, exception.Message), exception);
_tUnitLogger.LogError(Format("Error", $"{message} {{0}}", exception));
if (exception is AggregateException ae)
{