{"action":"created","comment":{"url":"https://api.github.com/repos/FundedByMe/django-uc/pulls/comments/24502551","id":24502551,"diff_hunk":"@@ -20,6 +20,7 @@ def marshalled(self, context):\n         company_report = body[0]\n         company_report.set('ns1:product', self.product_code)\n         company_report.set('ns1:version', '2.1')\n+        print(context.envelope.getChild('Body'))","path":"uc/uc.py","position":4,"original_position":4,"commit_id":"29a4633df8ddcb5507f580e1936d85522c6dc4de","original_commit_id":"29a4633df8ddcb5507f580e1936d85522c6dc4de","user":{"login":"anah","id":2765909,"avatar_url":"https://avatars.githubusercontent.com/u/2765909?v=3","gravatar_id":"","url":"https://api.github.com/users/anah","html_url":"https://github.com/anah","followers_url":"https://api.github.com/users/anah/followers","following_url":"https://api.github.com/users/anah/following{/other_user}","gists_url":"https://api.github.com/users/anah/gists{/gist_id}","starred_url":"https://api.github.com/users/anah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anah/subscriptions","organizations_url":"https://api.github.com/users/anah/orgs","repos_url":"https://api.github.com/users/anah/repos","events_url":"https://api.github.com/users/anah/events{/privacy}","received_events_url":"https://api.github.com/users/anah/received_events","type":"User","site_admin":false},"body":"There is no need to create a handler, you just need an instance of a logger. It is not the the same because print statements are not actually logged and you cannot set a logging level. Here is what the Python documentation says about when to use logging: https://docs.python.org/2/howto/logging.html#when-to-use-logging","created_at":"2015-02-11T15:23:19Z","updated_at":"2015-02-11T15:23:19Z","html_url":"https://github.com/FundedByMe/django-uc/pull/7#discussion_r24502551","pull_request_url":"https://api.github.com/repos/FundedByMe/django-uc/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/FundedByMe/django-uc/pulls/comments/24502551"},"html":{"href":"https://github.com/FundedByMe/django-uc/pull/7#discussion_r24502551"},"pull_request":{"href":"https://api.github.com/repos/FundedByMe/django-uc/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/FundedByMe/django-uc/pulls/7","id":29013400,"html_url":"https://github.com/FundedByMe/django-uc/pull/7","diff_url":"https://github.com/FundedByMe/django-uc/pull/7.diff","patch_url":"https://github.com/FundedByMe/django-uc/pull/7.patch","issue_url":"https://api.github.com/repos/FundedByMe/django-uc/issues/7","number":7,"state":"open","locked":false,"title":"print xml's body before changing the product_code","user":{"login":"flaviamissi","id":444856,"avatar_url":"https://avatars.githubusercontent.com/u/444856?v=3","gravatar_id":"","url":"https://api.github.com/users/flaviamissi","html_url":"https://github.com/flaviamissi","followers_url":"https://api.github.com/users/flaviamissi/followers","following_url":"https://api.github.com/users/flaviamissi/following{/other_user}","gists_url":"https://api.github.com/users/flaviamissi/gists{/gist_id}","starred_url":"https://api.github.com/users/flaviamissi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flaviamissi/subscriptions","organizations_url":"https://api.github.com/users/flaviamissi/orgs","repos_url":"https://api.github.com/users/flaviamissi/repos","events_url":"https://api.github.com/users/flaviamissi/events{/privacy}","received_events_url":"https://api.github.com/users/flaviamissi/received_events","type":"User","site_admin":false},"body":"This should allow us to see the xml request body when generating reports (using `heroku logs`).","created_at":"2015-02-10T15:00:32Z","updated_at":"2015-02-11T15:23:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bcfb7f413af5f29ab11409def59677c1a275b97","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FundedByMe/django-uc/pulls/7/commits","review_comments_url":"https://api.github.com/repos/FundedByMe/django-uc/pulls/7/comments","review_comment_url":"https://api.github.com/repos/FundedByMe/django-uc/pulls/comments/{number}","comments_url":"https://api.github.com/repos/FundedByMe/django-uc/issues/7/comments","statuses_url":"https://api.github.com/repos/FundedByMe/django-uc/statuses/29a4633df8ddcb5507f580e1936d85522c6dc4de","head":{"label":"FundedByMe:print_plugins_envelope_body","ref":"print_plugins_envelope_body","sha":"29a4633df8ddcb5507f580e1936d85522c6dc4de","user":{"login":"FundedByMe","id":4102263,"avatar_url":"https://avatars.githubusercontent.com/u/4102263?v=3","gravatar_id":"","url":"https://api.github.com/users/FundedByMe","html_url":"https://github.com/FundedByMe","followers_url":"https://api.github.com/users/FundedByMe/followers","following_url":"https://api.github.com/users/FundedByMe/following{/other_user}","gists_url":"https://api.github.com/users/FundedByMe/gists{/gist_id}","starred_url":"https://api.github.com/users/FundedByMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FundedByMe/subscriptions","organizations_url":"https://api.github.com/users/FundedByMe/orgs","repos_url":"https://api.github.com/users/FundedByMe/repos","events_url":"https://api.github.com/users/FundedByMe/events{/privacy}","received_events_url":"https://api.github.com/users/FundedByMe/received_events","type":"Organization","site_admin":false},"repo":{"id":25273681,"name":"django-uc","full_name":"FundedByMe/django-uc","owner":{"login":"FundedByMe","id":4102263,"avatar_url":"https://avatars.githubusercontent.com/u/4102263?v=3","gravatar_id":"","url":"https://api.github.com/users/FundedByMe","html_url":"https://github.com/FundedByMe","followers_url":"https://api.github.com/users/FundedByMe/followers","following_url":"https://api.github.com/users/FundedByMe/following{/other_user}","gists_url":"https://api.github.com/users/FundedByMe/gists{/gist_id}","starred_url":"https://api.github.com/users/FundedByMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FundedByMe/subscriptions","organizations_url":"https://api.github.com/users/FundedByMe/orgs","repos_url":"https://api.github.com/users/FundedByMe/repos","events_url":"https://api.github.com/users/FundedByMe/events{/privacy}","received_events_url":"https://api.github.com/users/FundedByMe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FundedByMe/django-uc","description":"Django Intergration with UC's API","fork":false,"url":"https://api.github.com/repos/FundedByMe/django-uc","forks_url":"https://api.github.com/repos/FundedByMe/django-uc/forks","keys_url":"https://api.github.com/repos/FundedByMe/django-uc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FundedByMe/django-uc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FundedByMe/django-uc/teams","hooks_url":"https://api.github.com/repos/FundedByMe/django-uc/hooks","issue_events_url":"https://api.github.com/repos/FundedByMe/django-uc/issues/events{/number}","events_url":"https://api.github.com/repos/FundedByMe/django-uc/events","assignees_url":"https://api.github.com/repos/FundedByMe/django-uc/assignees{/user}","branches_url":"https://api.github.com/repos/FundedByMe/django-uc/branches{/branch}","tags_url":"https://api.github.com/repos/FundedByMe/django-uc/tags","blobs_url":"https://api.github.com/repos/FundedByMe/django-uc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FundedByMe/django-uc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FundedByMe/django-uc/git/refs{/sha}","trees_url":"https://api.github.com/repos/FundedByMe/django-uc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FundedByMe/django-uc/statuses/{sha}","languages_url":"https://api.github.com/repos/FundedByMe/django-uc/languages","stargazers_url":"https://api.github.com/repos/FundedByMe/django-uc/stargazers","contributors_url":"https://api.github.com/repos/FundedByMe/django-uc/contributors","subscribers_url":"https://api.github.com/repos/FundedByMe/django-uc/subscribers","subscription_url":"https://api.github.com/repos/FundedByMe/django-uc/subscription","commits_url":"https://api.github.com/repos/FundedByMe/django-uc/commits{/sha}","git_commits_url":"https://api.github.com/repos/FundedByMe/django-uc/git/commits{/sha}","comments_url":"https://api.github.com/repos/FundedByMe/django-uc/comments{/number}","issue_comment_url":"https://api.github.com/repos/FundedByMe/django-uc/issues/comments/{number}","contents_url":"https://api.github.com/repos/FundedByMe/django-uc/contents/{+path}","compare_url":"https://api.github.com/repos/FundedByMe/django-uc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FundedByMe/django-uc/merges","archive_url":"https://api.github.com/repos/FundedByMe/django-uc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FundedByMe/django-uc/downloads","issues_url":"https://api.github.com/repos/FundedByMe/django-uc/issues{/number}","pulls_url":"https://api.github.com/repos/FundedByMe/django-uc/pulls{/number}","milestones_url":"https://api.github.com/repos/FundedByMe/django-uc/milestones{/number}","notifications_url":"https://api.github.com/repos/FundedByMe/django-uc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FundedByMe/django-uc/labels{/name}","releases_url":"https://api.github.com/repos/FundedByMe/django-uc/releases{/id}","created_at":"2014-10-15T21:09:38Z","updated_at":"2014-11-21T15:00:21Z","pushed_at":"2015-02-10T14:59:41Z","git_url":"git://github.com/FundedByMe/django-uc.git","ssh_url":"git@github.com:FundedByMe/django-uc.git","clone_url":"https://github.com/FundedByMe/django-uc.git","svn_url":"https://github.com/FundedByMe/django-uc","homepage":null,"size":352,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"FundedByMe:master","ref":"master","sha":"7ca478192ffc6cea2b178b6aedfae9bddca65a30","user":{"login":"FundedByMe","id":4102263,"avatar_url":"https://avatars.githubusercontent.com/u/4102263?v=3","gravatar_id":"","url":"https://api.github.com/users/FundedByMe","html_url":"https://github.com/FundedByMe","followers_url":"https://api.github.com/users/FundedByMe/followers","following_url":"https://api.github.com/users/FundedByMe/following{/other_user}","gists_url":"https://api.github.com/users/FundedByMe/gists{/gist_id}","starred_url":"https://api.github.com/users/FundedByMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FundedByMe/subscriptions","organizations_url":"https://api.github.com/users/FundedByMe/orgs","repos_url":"https://api.github.com/users/FundedByMe/repos","events_url":"https://api.github.com/users/FundedByMe/events{/privacy}","received_events_url":"https://api.github.com/users/FundedByMe/received_events","type":"Organization","site_admin":false},"repo":{"id":25273681,"name":"django-uc","full_name":"FundedByMe/django-uc","owner":{"login":"FundedByMe","id":4102263,"avatar_url":"https://avatars.githubusercontent.com/u/4102263?v=3","gravatar_id":"","url":"https://api.github.com/users/FundedByMe","html_url":"https://github.com/FundedByMe","followers_url":"https://api.github.com/users/FundedByMe/followers","following_url":"https://api.github.com/users/FundedByMe/following{/other_user}","gists_url":"https://api.github.com/users/FundedByMe/gists{/gist_id}","starred_url":"https://api.github.com/users/FundedByMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FundedByMe/subscriptions","organizations_url":"https://api.github.com/users/FundedByMe/orgs","repos_url":"https://api.github.com/users/FundedByMe/repos","events_url":"https://api.github.com/users/FundedByMe/events{/privacy}","received_events_url":"https://api.github.com/users/FundedByMe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FundedByMe/django-uc","description":"Django Intergration with UC's API","fork":false,"url":"https://api.github.com/repos/FundedByMe/django-uc","forks_url":"https://api.github.com/repos/FundedByMe/django-uc/forks","keys_url":"https://api.github.com/repos/FundedByMe/django-uc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FundedByMe/django-uc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FundedByMe/django-uc/teams","hooks_url":"https://api.github.com/repos/FundedByMe/django-uc/hooks","issue_events_url":"https://api.github.com/repos/FundedByMe/django-uc/issues/events{/number}","events_url":"https://api.github.com/repos/FundedByMe/django-uc/events","assignees_url":"https://api.github.com/repos/FundedByMe/django-uc/assignees{/user}","branches_url":"https://api.github.com/repos/FundedByMe/django-uc/branches{/branch}","tags_url":"https://api.github.com/repos/FundedByMe/django-uc/tags","blobs_url":"https://api.github.com/repos/FundedByMe/django-uc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FundedByMe/django-uc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FundedByMe/django-uc/git/refs{/sha}","trees_url":"https://api.github.com/repos/FundedByMe/django-uc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FundedByMe/django-uc/statuses/{sha}","languages_url":"https://api.github.com/repos/FundedByMe/django-uc/languages","stargazers_url":"https://api.github.com/repos/FundedByMe/django-uc/stargazers","contributors_url":"https://api.github.com/repos/FundedByMe/django-uc/contributors","subscribers_url":"https://api.github.com/repos/FundedByMe/django-uc/subscribers","subscription_url":"https://api.github.com/repos/FundedByMe/django-uc/subscription","commits_url":"https://api.github.com/repos/FundedByMe/django-uc/commits{/sha}","git_commits_url":"https://api.github.com/repos/FundedByMe/django-uc/git/commits{/sha}","comments_url":"https://api.github.com/repos/FundedByMe/django-uc/comments{/number}","issue_comment_url":"https://api.github.com/repos/FundedByMe/django-uc/issues/comments/{number}","contents_url":"https://api.github.com/repos/FundedByMe/django-uc/contents/{+path}","compare_url":"https://api.github.com/repos/FundedByMe/django-uc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FundedByMe/django-uc/merges","archive_url":"https://api.github.com/repos/FundedByMe/django-uc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FundedByMe/django-uc/downloads","issues_url":"https://api.github.com/repos/FundedByMe/django-uc/issues{/number}","pulls_url":"https://api.github.com/repos/FundedByMe/django-uc/pulls{/number}","milestones_url":"https://api.github.com/repos/FundedByMe/django-uc/milestones{/number}","notifications_url":"https://api.github.com/repos/FundedByMe/django-uc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FundedByMe/django-uc/labels{/name}","releases_url":"https://api.github.com/repos/FundedByMe/django-uc/releases{/id}","created_at":"2014-10-15T21:09:38Z","updated_at":"2014-11-21T15:00:21Z","pushed_at":"2015-02-10T14:59:41Z","git_url":"git://github.com/FundedByMe/django-uc.git","ssh_url":"git@github.com:FundedByMe/django-uc.git","clone_url":"https://github.com/FundedByMe/django-uc.git","svn_url":"https://github.com/FundedByMe/django-uc","homepage":null,"size":352,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FundedByMe/django-uc/pulls/7"},"html":{"href":"https://github.com/FundedByMe/django-uc/pull/7"},"issue":{"href":"https://api.github.com/repos/FundedByMe/django-uc/issues/7"},"comments":{"href":"https://api.github.com/repos/FundedByMe/django-uc/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/FundedByMe/django-uc/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/FundedByMe/django-uc/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/FundedByMe/django-uc/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/FundedByMe/django-uc/statuses/29a4633df8ddcb5507f580e1936d85522c6dc4de"}}}}