{"action":"closed","number":29,"pull_request":{"url":"https://api.github.com/repos/transcovo/chpr-logger/pulls/29","id":242045971,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMDQ1OTcx","html_url":"https://github.com/transcovo/chpr-logger/pull/29","diff_url":"https://github.com/transcovo/chpr-logger/pull/29.diff","patch_url":"https://github.com/transcovo/chpr-logger/pull/29.patch","issue_url":"https://api.github.com/repos/transcovo/chpr-logger/issues/29","number":29,"state":"closed","locked":false,"title":"TECH Override standard error serializer","user":{"login":"lledey","id":1835265,"node_id":"MDQ6VXNlcjE4MzUyNjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1835265?v=4","gravatar_id":"","url":"https://api.github.com/users/lledey","html_url":"https://github.com/lledey","followers_url":"https://api.github.com/users/lledey/followers","following_url":"https://api.github.com/users/lledey/following{/other_user}","gists_url":"https://api.github.com/users/lledey/gists{/gist_id}","starred_url":"https://api.github.com/users/lledey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lledey/subscriptions","organizations_url":"https://api.github.com/users/lledey/orgs","repos_url":"https://api.github.com/users/lledey/repos","events_url":"https://api.github.com/users/lledey/events{/privacy}","received_events_url":"https://api.github.com/users/lledey/received_events","type":"User","site_admin":false},"body":"Adds the custom fields in the log\r\n\r\nOverrides [this function](https://github.com/trentm/node-bunyan/blob/fe31b83e42d9c7f784e83fdcc528a7c76e0dacae/lib/bunyan.js#L1139)\r\n\r\nTested the result:\r\n```node\r\nconst logger = require('./index');\r\n\r\nconst err = new Error('some error');\r\nerr.extra_field = 'extra_value';\r\n\r\nlogger.info({ err }, 'Some log message');\r\n```\r\ngives\r\n```json\r\n{\"name\":\"Development logger\",\"hostname\":\"TRFRLTA028.local\",\"pid\":76144,\"level\":30,\"err\":{\"message\":\"some error\",\"name\":\"Error\",\"stack\":\"Error: some error\\n    at Object.<anonymous> (/Users/louisledey/dev/chpr-logger/test.js:3:13)\\n    at Module._compile (module.js:541:32)\\n    at Object.Module._extensions..js (module.js:550:10)\\n    at Module.load (module.js:456:32)\\n    at tryModuleLoad (module.js:415:12)\\n    at Function.Module._load (module.js:407:3)\\n    at Function.Module.runMain (module.js:575:10)\\n    at startup (node.js:159:18)\\n    at node.js:444:3\",\"extra_field\":\"extra_value\"},\"msg\":\"Some log message\",\"time\":\"2019-01-03T16:35:16.912Z\",\"v\":0}\r\n```","created_at":"2019-01-03T16:33:48Z","updated_at":"2019-01-04T15:09:49Z","closed_at":"2019-01-04T15:09:49Z","merged_at":"2019-01-04T15:09:49Z","merge_commit_sha":"018dbf316f66a56201a2297d3181491335e28781","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/transcovo/chpr-logger/pulls/29/commits","review_comments_url":"https://api.github.com/repos/transcovo/chpr-logger/pulls/29/comments","review_comment_url":"https://api.github.com/repos/transcovo/chpr-logger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/transcovo/chpr-logger/issues/29/comments","statuses_url":"https://api.github.com/repos/transcovo/chpr-logger/statuses/f6124b02728f5602e79d5c27d3815fb139735ca9","head":{"label":"transcovo:error-serializer","ref":"error-serializer","sha":"f6124b02728f5602e79d5c27d3815fb139735ca9","user":{"login":"transcovo","id":1064492,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjQ0OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1064492?v=4","gravatar_id":"","url":"https://api.github.com/users/transcovo","html_url":"https://github.com/transcovo","followers_url":"https://api.github.com/users/transcovo/followers","following_url":"https://api.github.com/users/transcovo/following{/other_user}","gists_url":"https://api.github.com/users/transcovo/gists{/gist_id}","starred_url":"https://api.github.com/users/transcovo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transcovo/subscriptions","organizations_url":"https://api.github.com/users/transcovo/orgs","repos_url":"https://api.github.com/users/transcovo/repos","events_url":"https://api.github.com/users/transcovo/events{/privacy}","received_events_url":"https://api.github.com/users/transcovo/received_events","type":"Organization","site_admin":false},"repo":{"id":55419986,"node_id":"MDEwOlJlcG9zaXRvcnk1NTQxOTk4Ng==","name":"chpr-logger","full_name":"transcovo/chpr-logger","private":false,"owner":{"login":"transcovo","id":1064492,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjQ0OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1064492?v=4","gravatar_id":"","url":"https://api.github.com/users/transcovo","html_url":"https://github.com/transcovo","followers_url":"https://api.github.com/users/transcovo/followers","following_url":"https://api.github.com/users/transcovo/following{/other_user}","gists_url":"https://api.github.com/users/transcovo/gists{/gist_id}","starred_url":"https://api.github.com/users/transcovo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transcovo/subscriptions","organizations_url":"https://api.github.com/users/transcovo/orgs","repos_url":"https://api.github.com/users/transcovo/repos","events_url":"https://api.github.com/users/transcovo/events{/privacy}","received_events_url":"https://api.github.com/users/transcovo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/transcovo/chpr-logger","description":"Our standard Bunyan + Sentry configuration","fork":false,"url":"https://api.github.com/repos/transcovo/chpr-logger","forks_url":"https://api.github.com/repos/transcovo/chpr-logger/forks","keys_url":"https://api.github.com/repos/transcovo/chpr-logger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/transcovo/chpr-logger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/transcovo/chpr-logger/teams","hooks_url":"https://api.github.com/repos/transcovo/chpr-logger/hooks","issue_events_url":"https://api.github.com/repos/transcovo/chpr-logger/issues/events{/number}","events_url":"https://api.github.com/repos/transcovo/chpr-logger/events","assignees_url":"https://api.github.com/repos/transcovo/chpr-logger/assignees{/user}","branches_url":"https://api.github.com/repos/transcovo/chpr-logger/branches{/branch}","tags_url":"https://api.github.com/repos/transcovo/chpr-logger/tags","blobs_url":"https://api.github.com/repos/transcovo/chpr-logger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/transcovo/chpr-logger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/transcovo/chpr-logger/git/refs{/sha}","trees_url":"https://api.github.com/repos/transcovo/chpr-logger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/transcovo/chpr-logger/statuses/{sha}","languages_url":"https://api.github.com/repos/transcovo/chpr-logger/languages","stargazers_url":"https://api.github.com/repos/transcovo/chpr-logger/stargazers","contributors_url":"https://api.github.com/repos/transcovo/chpr-logger/contributors","subscribers_url":"https://api.github.com/repos/transcovo/chpr-logger/subscribers","subscription_url":"https://api.github.com/repos/transcovo/chpr-logger/subscription","commits_url":"https://api.github.com/repos/transcovo/chpr-logger/commits{/sha}","git_commits_url":"https://api.github.com/repos/transcovo/chpr-logger/git/commits{/sha}","comments_url":"https://api.github.com/repos/transcovo/chpr-logger/comments{/number}","issue_comment_url":"https://api.github.com/repos/transcovo/chpr-logger/issues/comments{/number}","contents_url":"https://api.github.com/repos/transcovo/chpr-logger/contents/{+path}","compare_url":"https://api.github.com/repos/transcovo/chpr-logger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/transcovo/chpr-logger/merges","archive_url":"https://api.github.com/repos/transcovo/chpr-logger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/transcovo/chpr-logger/downloads","issues_url":"https://api.github.com/repos/transcovo/chpr-logger/issues{/number}","pulls_url":"https://api.github.com/repos/transcovo/chpr-logger/pulls{/number}","milestones_url":"https://api.github.com/repos/transcovo/chpr-logger/milestones{/number}","notifications_url":"https://api.github.com/repos/transcovo/chpr-logger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/transcovo/chpr-logger/labels{/name}","releases_url":"https://api.github.com/repos/transcovo/chpr-logger/releases{/id}","deployments_url":"https://api.github.com/repos/transcovo/chpr-logger/deployments","created_at":"2016-04-04T14:53:43Z","updated_at":"2019-01-03T11:01:09Z","pushed_at":"2019-01-04T15:09:49Z","git_url":"git://github.com/transcovo/chpr-logger.git","ssh_url":"git@github.com:transcovo/chpr-logger.git","clone_url":"https://github.com/transcovo/chpr-logger.git","svn_url":"https://github.com/transcovo/chpr-logger","homepage":"","size":76,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"transcovo:master","ref":"master","sha":"ee45ce71c07a19393fc7ffd5d2a0ef5873434ee4","user":{"login":"transcovo","id":1064492,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjQ0OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1064492?v=4","gravatar_id":"","url":"https://api.github.com/users/transcovo","html_url":"https://github.com/transcovo","followers_url":"https://api.github.com/users/transcovo/followers","following_url":"https://api.github.com/users/transcovo/following{/other_user}","gists_url":"https://api.github.com/users/transcovo/gists{/gist_id}","starred_url":"https://api.github.com/users/transcovo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transcovo/subscriptions","organizations_url":"https://api.github.com/users/transcovo/orgs","repos_url":"https://api.github.com/users/transcovo/repos","events_url":"https://api.github.com/users/transcovo/events{/privacy}","received_events_url":"https://api.github.com/users/transcovo/received_events","type":"Organization","site_admin":false},"repo":{"id":55419986,"node_id":"MDEwOlJlcG9zaXRvcnk1NTQxOTk4Ng==","name":"chpr-logger","full_name":"transcovo/chpr-logger","private":false,"owner":{"login":"transcovo","id":1064492,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjQ0OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1064492?v=4","gravatar_id":"","url":"https://api.github.com/users/transcovo","html_url":"https://github.com/transcovo","followers_url":"https://api.github.com/users/transcovo/followers","following_url":"https://api.github.com/users/transcovo/following{/other_user}","gists_url":"https://api.github.com/users/transcovo/gists{/gist_id}","starred_url":"https://api.github.com/users/transcovo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transcovo/subscriptions","organizations_url":"https://api.github.com/users/transcovo/orgs","repos_url":"https://api.github.com/users/transcovo/repos","events_url":"https://api.github.com/users/transcovo/events{/privacy}","received_events_url":"https://api.github.com/users/transcovo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/transcovo/chpr-logger","description":"Our standard Bunyan + Sentry configuration","fork":false,"url":"https://api.github.com/repos/transcovo/chpr-logger","forks_url":"https://api.github.com/repos/transcovo/chpr-logger/forks","keys_url":"https://api.github.com/repos/transcovo/chpr-logger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/transcovo/chpr-logger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/transcovo/chpr-logger/teams","hooks_url":"https://api.github.com/repos/transcovo/chpr-logger/hooks","issue_events_url":"https://api.github.com/repos/transcovo/chpr-logger/issues/events{/number}","events_url":"https://api.github.com/repos/transcovo/chpr-logger/events","assignees_url":"https://api.github.com/repos/transcovo/chpr-logger/assignees{/user}","branches_url":"https://api.github.com/repos/transcovo/chpr-logger/branches{/branch}","tags_url":"https://api.github.com/repos/transcovo/chpr-logger/tags","blobs_url":"https://api.github.com/repos/transcovo/chpr-logger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/transcovo/chpr-logger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/transcovo/chpr-logger/git/refs{/sha}","trees_url":"https://api.github.com/repos/transcovo/chpr-logger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/transcovo/chpr-logger/statuses/{sha}","languages_url":"https://api.github.com/repos/transcovo/chpr-logger/languages","stargazers_url":"https://api.github.com/repos/transcovo/chpr-logger/stargazers","contributors_url":"https://api.github.com/repos/transcovo/chpr-logger/contributors","subscribers_url":"https://api.github.com/repos/transcovo/chpr-logger/subscribers","subscription_url":"https://api.github.com/repos/transcovo/chpr-logger/subscription","commits_url":"https://api.github.com/repos/transcovo/chpr-logger/commits{/sha}","git_commits_url":"https://api.github.com/repos/transcovo/chpr-logger/git/commits{/sha}","comments_url":"https://api.github.com/repos/transcovo/chpr-logger/comments{/number}","issue_comment_url":"https://api.github.com/repos/transcovo/chpr-logger/issues/comments{/number}","contents_url":"https://api.github.com/repos/transcovo/chpr-logger/contents/{+path}","compare_url":"https://api.github.com/repos/transcovo/chpr-logger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/transcovo/chpr-logger/merges","archive_url":"https://api.github.com/repos/transcovo/chpr-logger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/transcovo/chpr-logger/downloads","issues_url":"https://api.github.com/repos/transcovo/chpr-logger/issues{/number}","pulls_url":"https://api.github.com/repos/transcovo/chpr-logger/pulls{/number}","milestones_url":"https://api.github.com/repos/transcovo/chpr-logger/milestones{/number}","notifications_url":"https://api.github.com/repos/transcovo/chpr-logger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/transcovo/chpr-logger/labels{/name}","releases_url":"https://api.github.com/repos/transcovo/chpr-logger/releases{/id}","deployments_url":"https://api.github.com/repos/transcovo/chpr-logger/deployments","created_at":"2016-04-04T14:53:43Z","updated_at":"2019-01-03T11:01:09Z","pushed_at":"2019-01-04T15:09:49Z","git_url":"git://github.com/transcovo/chpr-logger.git","ssh_url":"git@github.com:transcovo/chpr-logger.git","clone_url":"https://github.com/transcovo/chpr-logger.git","svn_url":"https://github.com/transcovo/chpr-logger","homepage":"","size":76,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/transcovo/chpr-logger/pulls/29"},"html":{"href":"https://github.com/transcovo/chpr-logger/pull/29"},"issue":{"href":"https://api.github.com/repos/transcovo/chpr-logger/issues/29"},"comments":{"href":"https://api.github.com/repos/transcovo/chpr-logger/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/transcovo/chpr-logger/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/transcovo/chpr-logger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/transcovo/chpr-logger/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/transcovo/chpr-logger/statuses/f6124b02728f5602e79d5c27d3815fb139735ca9"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"lledey","id":1835265,"node_id":"MDQ6VXNlcjE4MzUyNjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1835265?v=4","gravatar_id":"","url":"https://api.github.com/users/lledey","html_url":"https://github.com/lledey","followers_url":"https://api.github.com/users/lledey/followers","following_url":"https://api.github.com/users/lledey/following{/other_user}","gists_url":"https://api.github.com/users/lledey/gists{/gist_id}","starred_url":"https://api.github.com/users/lledey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lledey/subscriptions","organizations_url":"https://api.github.com/users/lledey/orgs","repos_url":"https://api.github.com/users/lledey/repos","events_url":"https://api.github.com/users/lledey/events{/privacy}","received_events_url":"https://api.github.com/users/lledey/received_events","type":"User","site_admin":false},"comments":2,"review_comments":1,"maintainer_can_modify":false,"commits":1,"additions":67,"deletions":2,"changed_files":5}}
{"actor":{"display_login":"lledey"}}