add possibility to log request/response only when error occurred
Merge pull request #15 from iron-io/debug-on-errors

Add possibility to log request/response only when error occurred