{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/sarama/issues/478","labels_url":"https://api.github.com/repos/Shopify/sarama/issues/478/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/sarama/issues/478/comments","events_url":"https://api.github.com/repos/Shopify/sarama/issues/478/events","html_url":"https://github.com/Shopify/sarama/pull/478","id":90752284,"number":478,"title":"Make actions of the mock broker visible","user":{"login":"horkhe","id":798874,"avatar_url":"https://avatars.githubusercontent.com/u/798874?v=3","gravatar_id":"","url":"https://api.github.com/users/horkhe","html_url":"https://github.com/horkhe","followers_url":"https://api.github.com/users/horkhe/followers","following_url":"https://api.github.com/users/horkhe/following{/other_user}","gists_url":"https://api.github.com/users/horkhe/gists{/gist_id}","starred_url":"https://api.github.com/users/horkhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horkhe/subscriptions","organizations_url":"https://api.github.com/users/horkhe/orgs","repos_url":"https://api.github.com/users/horkhe/repos","events_url":"https://api.github.com/users/horkhe/events{/privacy}","received_events_url":"https://api.github.com/users/horkhe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-24T18:23:55Z","updated_at":"2015-06-27T04:00:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Shopify/sarama/pulls/478","html_url":"https://github.com/Shopify/sarama/pull/478","diff_url":"https://github.com/Shopify/sarama/pull/478.diff","patch_url":"https://github.com/Shopify/sarama/pull/478.patch"},"body":"This change makes every request-response pair processed by a mock broker visible in test logs. It helped me to understand the flow of the tests, so I figured it may be beneficial for other users too. It might seems like a lot of changes, but basically I just added `decode` function to every request."},"comment":{"url":"https://api.github.com/repos/Shopify/sarama/issues/comments/115953622","html_url":"https://github.com/Shopify/sarama/pull/478#issuecomment-115953622","issue_url":"https://api.github.com/repos/Shopify/sarama/issues/478","id":115953622,"user":{"login":"eapache","id":1706826,"avatar_url":"https://avatars.githubusercontent.com/u/1706826?v=3","gravatar_id":"","url":"https://api.github.com/users/eapache","html_url":"https://github.com/eapache","followers_url":"https://api.github.com/users/eapache/followers","following_url":"https://api.github.com/users/eapache/following{/other_user}","gists_url":"https://api.github.com/users/eapache/gists{/gist_id}","starred_url":"https://api.github.com/users/eapache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eapache/subscriptions","organizations_url":"https://api.github.com/users/eapache/orgs","repos_url":"https://api.github.com/users/eapache/repos","events_url":"https://api.github.com/users/eapache/events{/privacy}","received_events_url":"https://api.github.com/users/eapache/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T04:00:57Z","updated_at":"2015-06-27T04:00:57Z","body":"I am sitting in an airport half-asleep and waiting for a connecting flight, so take this with a grain of salt, but off the top of my head the principle looks good. I'm not convinced the implementation in `request.go` is ideal, I think there's probably a way to do it with less duplication and better conforming to the existing pattern, but I'm too tired to tell you what that would be, and I could just be wrong :)"}}