{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/comments/193840260","pull_request_review_id":126895933,"id":193840260,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5Mzg0MDI2MA==","diff_hunk":"@@ -19,6 +19,7 @@\n       { \"period\": \"5 minutes\", \"limit\": 0 }\n     ]\n   },\n+  \"jsonlogging\": \"false\",","path":"config/default.json","position":4,"original_position":4,"commit_id":"6eed66ed8f9e0ecdf55a29165553d88774778ddc","original_commit_id":"6eed66ed8f9e0ecdf55a29165553d88774778ddc","user":{"login":"vladikoff","id":128755,"node_id":"MDQ6VXNlcjEyODc1NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/128755?v=4","gravatar_id":"","url":"https://api.github.com/users/vladikoff","html_url":"https://github.com/vladikoff","followers_url":"https://api.github.com/users/vladikoff/followers","following_url":"https://api.github.com/users/vladikoff/following{/other_user}","gists_url":"https://api.github.com/users/vladikoff/gists{/gist_id}","starred_url":"https://api.github.com/users/vladikoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladikoff/subscriptions","organizations_url":"https://api.github.com/users/vladikoff/orgs","repos_url":"https://api.github.com/users/vladikoff/repos","events_url":"https://api.github.com/users/vladikoff/events{/privacy}","received_events_url":"https://api.github.com/users/vladikoff/received_events","type":"User","site_admin":false},"body":"commit `dev.json` with this `false`, set `true` to prod","created_at":"2018-06-07T18:06:58Z","updated_at":"2018-06-07T18:06:59Z","html_url":"https://github.com/mozilla/fxa-email-service/pull/63#discussion_r193840260","pull_request_url":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/63","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/comments/193840260"},"html":{"href":"https://github.com/mozilla/fxa-email-service/pull/63#discussion_r193840260"},"pull_request":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/63"}},"in_reply_to_id":193831368},"pull_request":{"url":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/63","id":193395087,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMzk1MDg3","html_url":"https://github.com/mozilla/fxa-email-service/pull/63","diff_url":"https://github.com/mozilla/fxa-email-service/pull/63.diff","patch_url":"https://github.com/mozilla/fxa-email-service/pull/63.patch","issue_url":"https://api.github.com/repos/mozilla/fxa-email-service/issues/63","number":63,"state":"open","locked":false,"title":"feat(logging): add mozlog logging to requests","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":"Starts to fix #10 \r\n\r\nI adapted the megaphone logging module for our purposes. https://github.com/mozilla-services/megaphone/blob/c7353f7e167a34aa7617cc23ac9489f395d77ff4/src/logging.rs\r\n\r\nThis is using [Fairings](https://api.rocket.rs/rocket/fairing/trait.Fairing.html) to log every time  a user makes a request. It logs when the request started and when it is done. \r\n\r\nThere are still some more `println!`'s to replace, specially in the queues, but I thought it was best to send this in for you guys to check if I'm in the right direction.\r\n\r\nAlso, I added a new config variable `FXA_EMAIL_JSONLOGGING`, it defaults to `false`. If it's `true` it will log mozlog style. If it's `false` it will use pretty formatting.\r\n\r\nr? @philbooth @vladikoff ","created_at":"2018-06-07T17:30:08Z","updated_at":"2018-06-07T18:06:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00892b87e5e468515eab6ef78cf90d9f9165069e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"philbooth","id":64367,"node_id":"MDQ6VXNlcjY0MzY3","avatar_url":"https://avatars2.githubusercontent.com/u/64367?v=4","gravatar_id":"","url":"https://api.github.com/users/philbooth","html_url":"https://github.com/philbooth","followers_url":"https://api.github.com/users/philbooth/followers","following_url":"https://api.github.com/users/philbooth/following{/other_user}","gists_url":"https://api.github.com/users/philbooth/gists{/gist_id}","starred_url":"https://api.github.com/users/philbooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philbooth/subscriptions","organizations_url":"https://api.github.com/users/philbooth/orgs","repos_url":"https://api.github.com/users/philbooth/repos","events_url":"https://api.github.com/users/philbooth/events{/privacy}","received_events_url":"https://api.github.com/users/philbooth/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/63/commits","review_comments_url":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/63/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/63/comments","statuses_url":"https://api.github.com/repos/mozilla/fxa-email-service/statuses/6eed66ed8f9e0ecdf55a29165553d88774778ddc","head":{"label":"brizental:brizental/mozlog-logging","ref":"brizental/mozlog-logging","sha":"6eed66ed8f9e0ecdf55a29165553d88774778ddc","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-06-06T20:14:55Z","pushed_at":"2018-06-07T17:18:30Z","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":135,"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":0,"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":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"44dcffd364b74fbc2e04bb20c9f722bb987e4eb8","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-06-07T15:01:15Z","pushed_at":"2018-06-07T17:30:09Z","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":138,"stargazers_count":2,"watchers_count":2,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":24,"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":2,"open_issues":24,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/63"},"html":{"href":"https://github.com/mozilla/fxa-email-service/pull/63"},"issue":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/issues/63"},"comments":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/pulls/63/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/63/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/fxa-email-service/statuses/6eed66ed8f9e0ecdf55a29165553d88774778ddc"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"vladikoff"}}