{"action":"opened","number":177,"pull_request":{"url":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/177","id":209022190,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MDIyMTkw","html_url":"https://github.com/mozilla/fxa-email-service/pull/177","diff_url":"https://github.com/mozilla/fxa-email-service/pull/177.diff","patch_url":"https://github.com/mozilla/fxa-email-service/pull/177.patch","issue_url":"https://api.github.com/repos/mozilla/fxa-email-service/issues/177","number":177,"state":"open","locked":false,"title":"fix(logging): remove unnecessary and add debug logs in queues","user":{"login":"brizental","id":25176023,"node_id":"MDQ6VXNlcjI1MTc2MDIz","avatar_url":"https://avatars2.githubusercontent.com/u/25176023?v=4","gravatar_id":"","url":"https://api.github.com/users/brizental","html_url":"https://github.com/brizental","followers_url":"https://api.github.com/users/brizental/followers","following_url":"https://api.github.com/users/brizental/following{/other_user}","gists_url":"https://api.github.com/users/brizental/gists{/gist_id}","starred_url":"https://api.github.com/users/brizental/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brizental/subscriptions","organizations_url":"https://api.github.com/users/brizental/orgs","repos_url":"https://api.github.com/users/brizental/repos","events_url":"https://api.github.com/users/brizental/events{/privacy}","received_events_url":"https://api.github.com/users/brizental/received_events","type":"User","site_admin":false},"body":"Fixes #173\r\n\r\nThere is a bunch of minor fixes going on in this PR.\r\n\r\n- Fix #173 \r\n- Add some debug logs for notifications in case we need it (probably would be good to only show them when we have some `debug` flag on or something)\r\n- Notification JSON may come in different shapes, nested or not nested, so I added functionality to accept both. That logic might me a little fragile so let me know what you think.\r\n\r\nr? @vladikoff @philbooth ","created_at":"2018-08-17T01:08:50Z","updated_at":"2018-08-17T01:08:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/177/commits","review_comments_url":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/177/comments","review_comment_url":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/fxa-email-service/issues/177/comments","statuses_url":"https://api.github.com/repos/mozilla/fxa-email-service/statuses/04bef6741c9c07111bdcd9100fc8fe8c42419f64","head":{"label":"brizental:brizental/173","ref":"brizental/173","sha":"04bef6741c9c07111bdcd9100fc8fe8c42419f64","user":{"login":"brizental","id":25176023,"node_id":"MDQ6VXNlcjI1MTc2MDIz","avatar_url":"https://avatars2.githubusercontent.com/u/25176023?v=4","gravatar_id":"","url":"https://api.github.com/users/brizental","html_url":"https://github.com/brizental","followers_url":"https://api.github.com/users/brizental/followers","following_url":"https://api.github.com/users/brizental/following{/other_user}","gists_url":"https://api.github.com/users/brizental/gists{/gist_id}","starred_url":"https://api.github.com/users/brizental/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brizental/subscriptions","organizations_url":"https://api.github.com/users/brizental/orgs","repos_url":"https://api.github.com/users/brizental/repos","events_url":"https://api.github.com/users/brizental/events{/privacy}","received_events_url":"https://api.github.com/users/brizental/received_events","type":"User","site_admin":false},"repo":{"id":136229540,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYyMjk1NDA=","name":"fxa-email-service","full_name":"brizental/fxa-email-service","owner":{"login":"brizental","id":25176023,"node_id":"MDQ6VXNlcjI1MTc2MDIz","avatar_url":"https://avatars2.githubusercontent.com/u/25176023?v=4","gravatar_id":"","url":"https://api.github.com/users/brizental","html_url":"https://github.com/brizental","followers_url":"https://api.github.com/users/brizental/followers","following_url":"https://api.github.com/users/brizental/following{/other_user}","gists_url":"https://api.github.com/users/brizental/gists{/gist_id}","starred_url":"https://api.github.com/users/brizental/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brizental/subscriptions","organizations_url":"https://api.github.com/users/brizental/orgs","repos_url":"https://api.github.com/users/brizental/repos","events_url":"https://api.github.com/users/brizental/events{/privacy}","received_events_url":"https://api.github.com/users/brizental/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brizental/fxa-email-service","description":"Service for sending email to Firefox Accounts","fork":true,"url":"https://api.github.com/repos/brizental/fxa-email-service","forks_url":"https://api.github.com/repos/brizental/fxa-email-service/forks","keys_url":"https://api.github.com/repos/brizental/fxa-email-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brizental/fxa-email-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brizental/fxa-email-service/teams","hooks_url":"https://api.github.com/repos/brizental/fxa-email-service/hooks","issue_events_url":"https://api.github.com/repos/brizental/fxa-email-service/issues/events{/number}","events_url":"https://api.github.com/repos/brizental/fxa-email-service/events","assignees_url":"https://api.github.com/repos/brizental/fxa-email-service/assignees{/user}","branches_url":"https://api.github.com/repos/brizental/fxa-email-service/branches{/branch}","tags_url":"https://api.github.com/repos/brizental/fxa-email-service/tags","blobs_url":"https://api.github.com/repos/brizental/fxa-email-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brizental/fxa-email-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brizental/fxa-email-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/brizental/fxa-email-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brizental/fxa-email-service/statuses/{sha}","languages_url":"https://api.github.com/repos/brizental/fxa-email-service/languages","stargazers_url":"https://api.github.com/repos/brizental/fxa-email-service/stargazers","contributors_url":"https://api.github.com/repos/brizental/fxa-email-service/contributors","subscribers_url":"https://api.github.com/repos/brizental/fxa-email-service/subscribers","subscription_url":"https://api.github.com/repos/brizental/fxa-email-service/subscription","commits_url":"https://api.github.com/repos/brizental/fxa-email-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/brizental/fxa-email-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/brizental/fxa-email-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/brizental/fxa-email-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/brizental/fxa-email-service/contents/{+path}","compare_url":"https://api.github.com/repos/brizental/fxa-email-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brizental/fxa-email-service/merges","archive_url":"https://api.github.com/repos/brizental/fxa-email-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brizental/fxa-email-service/downloads","issues_url":"https://api.github.com/repos/brizental/fxa-email-service/issues{/number}","pulls_url":"https://api.github.com/repos/brizental/fxa-email-service/pulls{/number}","milestones_url":"https://api.github.com/repos/brizental/fxa-email-service/milestones{/number}","notifications_url":"https://api.github.com/repos/brizental/fxa-email-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brizental/fxa-email-service/labels{/name}","releases_url":"https://api.github.com/repos/brizental/fxa-email-service/releases{/id}","deployments_url":"https://api.github.com/repos/brizental/fxa-email-service/deployments","created_at":"2018-06-05T20:12:00Z","updated_at":"2018-08-15T00:55:42Z","pushed_at":"2018-08-17T01:04:19Z","git_url":"git://github.com/brizental/fxa-email-service.git","ssh_url":"git@github.com:brizental/fxa-email-service.git","clone_url":"https://github.com/brizental/fxa-email-service.git","svn_url":"https://github.com/brizental/fxa-email-service","homepage":"","size":391,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"73d07bd7cc89181f759f7cbc99be2687f9b88331","user":{"login":"mozilla","id":131524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":130983020,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA5ODMwMjA=","name":"fxa-email-service","full_name":"mozilla/fxa-email-service","owner":{"login":"mozilla","id":131524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/fxa-email-service","description":"Service for sending email to Firefox Accounts","fork":false,"url":"https://api.github.com/repos/mozilla/fxa-email-service","forks_url":"https://api.github.com/repos/mozilla/fxa-email-service/forks","keys_url":"https://api.github.com/repos/mozilla/fxa-email-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/fxa-email-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/fxa-email-service/teams","hooks_url":"https://api.github.com/repos/mozilla/fxa-email-service/hooks","issue_events_url":"https://api.github.com/repos/mozilla/fxa-email-service/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/fxa-email-service/events","assignees_url":"https://api.github.com/repos/mozilla/fxa-email-service/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/fxa-email-service/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/fxa-email-service/tags","blobs_url":"https://api.github.com/repos/mozilla/fxa-email-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/fxa-email-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/fxa-email-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/fxa-email-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/fxa-email-service/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/fxa-email-service/languages","stargazers_url":"https://api.github.com/repos/mozilla/fxa-email-service/stargazers","contributors_url":"https://api.github.com/repos/mozilla/fxa-email-service/contributors","subscribers_url":"https://api.github.com/repos/mozilla/fxa-email-service/subscribers","subscription_url":"https://api.github.com/repos/mozilla/fxa-email-service/subscription","commits_url":"https://api.github.com/repos/mozilla/fxa-email-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/fxa-email-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/fxa-email-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/fxa-email-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/fxa-email-service/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/fxa-email-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/fxa-email-service/merges","archive_url":"https://api.github.com/repos/mozilla/fxa-email-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/fxa-email-service/downloads","issues_url":"https://api.github.com/repos/mozilla/fxa-email-service/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/fxa-email-service/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/fxa-email-service/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/fxa-email-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/fxa-email-service/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/fxa-email-service/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/fxa-email-service/deployments","created_at":"2018-04-25T09:29:39Z","updated_at":"2018-08-16T21:06:16Z","pushed_at":"2018-08-16T21:17:05Z","git_url":"git://github.com/mozilla/fxa-email-service.git","ssh_url":"git@github.com:mozilla/fxa-email-service.git","clone_url":"https://github.com/mozilla/fxa-email-service.git","svn_url":"https://github.com/mozilla/fxa-email-service","homepage":"","size":1423,"stargazers_count":5,"watchers_count":5,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":3,"open_issues":21,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/177"},"html":{"href":"https://github.com/mozilla/fxa-email-service/pull/177"},"issue":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/issues/177"},"comments":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/statuses/04bef6741c9c07111bdcd9100fc8fe8c42419f64"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":42,"deletions":35,"changed_files":3}}
{"actor":{"display_login":"brizental"}}