Log Exception (#405)

This commit is contained in:
Stef Heyenrath
2020-01-25 15:25:47 +01:00
committed by GitHub
parent bd0c5a83c9
commit 69bbd76ca4
7 changed files with 52 additions and 10 deletions

View File

@@ -63,7 +63,7 @@ namespace WireMock.Owin
}
catch (Exception ex)
{
_options.Logger.Error("HttpStatusCode set to 500 {0}", ex);
_options.Logger.Error("HttpStatusCode set to 500", ex);
await _responseMapper.MapAsync(ResponseMessageBuilder.Create(JsonConvert.SerializeObject(ex), 500), ctx.Response);
}
}