{"action":"created","issue":{"url":"https://api.github.com/repos/weaveworks/weave/issues/1515","labels_url":"https://api.github.com/repos/weaveworks/weave/issues/1515/labels{/name}","comments_url":"https://api.github.com/repos/weaveworks/weave/issues/1515/comments","events_url":"https://api.github.com/repos/weaveworks/weave/issues/1515/events","html_url":"https://github.com/weaveworks/weave/issues/1515","id":110424490,"number":1515,"title":"For debugging, provide a way to see data passing in and out of weaveproxy","user":{"login":"bboreham","id":8125524,"avatar_url":"https://avatars.githubusercontent.com/u/8125524?v=3","gravatar_id":"","url":"https://api.github.com/users/bboreham","html_url":"https://github.com/bboreham","followers_url":"https://api.github.com/users/bboreham/followers","following_url":"https://api.github.com/users/bboreham/following{/other_user}","gists_url":"https://api.github.com/users/bboreham/gists{/gist_id}","starred_url":"https://api.github.com/users/bboreham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboreham/subscriptions","organizations_url":"https://api.github.com/users/bboreham/orgs","repos_url":"https://api.github.com/users/bboreham/repos","events_url":"https://api.github.com/users/bboreham/events{/privacy}","received_events_url":"https://api.github.com/users/bboreham/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/weaveworks/weave/labels/feature","name":"feature","color":"009800"},{"url":"https://api.github.com/repos/weaveworks/weave/labels/[component/proxy]","name":"[component/proxy]","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-08T10:57:29Z","updated_at":"2015-10-08T12:23:05Z","closed_at":null,"body":"Sometimes, to understand what has gone wrong, we would like to see the exact json that went in and out of the proxy."},"comment":{"url":"https://api.github.com/repos/weaveworks/weave/issues/comments/146521354","html_url":"https://github.com/weaveworks/weave/issues/1515#issuecomment-146521354","issue_url":"https://api.github.com/repos/weaveworks/weave/issues/1515","id":146521354,"user":{"login":"tomwilkie","id":444037,"avatar_url":"https://avatars.githubusercontent.com/u/444037?v=3","gravatar_id":"","url":"https://api.github.com/users/tomwilkie","html_url":"https://github.com/tomwilkie","followers_url":"https://api.github.com/users/tomwilkie/followers","following_url":"https://api.github.com/users/tomwilkie/following{/other_user}","gists_url":"https://api.github.com/users/tomwilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwilkie/subscriptions","organizations_url":"https://api.github.com/users/tomwilkie/orgs","repos_url":"https://api.github.com/users/tomwilkie/repos","events_url":"https://api.github.com/users/tomwilkie/events{/privacy}","received_events_url":"https://api.github.com/users/tomwilkie/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T12:23:05Z","updated_at":"2015-10-08T12:23:05Z","body":"```diff\r\ndiff --git a/proxy/common.go b/proxy/common.go\r\nindex 4c0f3fc..8f457f2 100644\r\n--- a/proxy/common.go\r\n+++ b/proxy/common.go\r\n@@ -42,6 +42,7 @@ func callWeave(args ...string) ([]byte, []byte, error) {\r\n \r\n func unmarshalRequestBody(r *http.Request, target interface{}) error {\r\n        body, err := ioutil.ReadAll(r.Body)\r\n+       Log.Infof(\"->requestBody: %s\", body)\r\n        if err != nil {\r\n                return err\r\n        }\r\n@@ -60,6 +61,7 @@ func marshalRequestBody(r *http.Request, body interface{}) error {\r\n        if err != nil {\r\n                return err\r\n        }\r\n+       Log.Infof(\"<-requestBody: %s\", newBody)\r\n        r.Body = ioutil.NopCloser(bytes.NewReader(newBody))\r\n        r.ContentLength = int64(len(newBody))\r\n        return nil\r\n```\r\n\r\nWas helpful to me..."}}