bastion-dev / Bastion

Java test library for HTTP APIs
http://bastion.rocks
GNU General Public License v3.0
13 stars 8 forks source link

Better logging of request/responses #30

Closed KPull closed 7 years ago

KPull commented 7 years ago

At the moment, Bastion does not output any information related to the request sent or response received (unless the configured Assertions or Callback do so). We need a more universal way of outputting the full HTTP requests/responses using the Bastion builder. This should ideally be the default behaviour when a Bastion request fails (through an assertion or otherwise).

KPull commented 7 years ago

For this issue, I believe the best course of action is to modify the DefaultBastionFactory to log the request and response in case of failure.