payload: {"action":"opened","number":74,"pull_request":{"url":"https://api.github.com/repos/koajs/logger/pulls/74","id":260151785,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYwMTUxNzg1","html_url":"https://github.com/koajs/logger/pull/74","diff_url":"https://github.com/koajs/logger/pull/74.diff","patch_url":"https://github.com/koajs/logger/pull/74.patch","issue_url":"https://api.github.com/repos/koajs/logger/issues/74","number":74,"state":"open","locked":false,"title":"Register response event listener earlier","user":{"login":"danielwpz","id":5139554,"node_id":"MDQ6VXNlcjUxMzk1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5139554?v=4","gravatar_id":"","url":"https://api.github.com/users/danielwpz","html_url":"https://github.com/danielwpz","followers_url":"https://api.github.com/users/danielwpz/followers","following_url":"https://api.github.com/users/danielwpz/following{/other_user}","gists_url":"https://api.github.com/users/danielwpz/gists{/gist_id}","starred_url":"https://api.github.com/users/danielwpz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielwpz/subscriptions","organizations_url":"https://api.github.com/users/danielwpz/orgs","repos_url":"https://api.github.com/users/danielwpz/repos","events_url":"https://api.github.com/users/danielwpz/events{/privacy}","received_events_url":"https://api.github.com/users/danielwpz/received_events","type":"User","site_admin":false},"body":"In some cases, the response may be terminated by a downstream middleware, which causes `finish` or `close` events to be triggered even before handlers are registered. (e.g. a client is trying to send a huge amount of data through stream, but the server decided not to read it and closed the stream).\r\n\r\nWhen this happens, we are still expecting to see a log which shows the connection is broken.\r\n\r\nThis can be done by registering the event listeners before calling `next`.","created_at":"2019-03-11T22:03:32Z","updated_at":"2019-03-11T22:03:32Z","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/koajs/logger/pulls/74/commits","review_comments_url":"https://api.github.com/repos/koajs/logger/pulls/74/comments","review_comment_url":"https://api.github.com/repos/koajs/logger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/koajs/logger/issues/74/comments","statuses_url":"https://api.github.com/repos/koajs/logger/statuses/a839a1062dd87703194d99d3f94d9f76cf93c702","head":{"label":"danielwpz:fix","ref":"fix","sha":"a839a1062dd87703194d99d3f94d9f76cf93c702","user":{"login":"danielwpz","id":5139554,"node_id":"MDQ6VXNlcjUxMzk1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5139554?v=4","gravatar_id":"","url":"https://api.github.com/users/danielwpz","html_url":"https://github.com/danielwpz","followers_url":"https://api.github.com/users/danielwpz/followers","following_url":"https://api.github.com/users/danielwpz/following{/other_user}","gists_url":"https://api.github.com/users/danielwpz/gists{/gist_id}","starred_url":"https://api.github.com/users/danielwpz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielwpz/subscriptions","organizations_url":"https://api.github.com/users/danielwpz/orgs","repos_url":"https://api.github.com/users/danielwpz/repos","events_url":"https://api.github.com/users/danielwpz/events{/privacy}","received_events_url":"https://api.github.com/users/danielwpz/received_events","type":"User","site_admin":false},"repo":{"id":175052330,"node_id":"MDEwOlJlcG9zaXRvcnkxNzUwNTIzMzA=","name":"logger","full_name":"danielwpz/logger","private":false,"owner":{"login":"danielwpz","id":5139554,"node_id":"MDQ6VXNlcjUxMzk1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5139554?v=4","gravatar_id":"","url":"https://api.github.com/users/danielwpz","html_url":"https://github.com/danielwpz","followers_url":"https://api.github.com/users/danielwpz/followers","following_url":"https://api.github.com/users/danielwpz/following{/other_user}","gists_url":"https://api.github.com/users/danielwpz/gists{/gist_id}","starred_url":"https://api.github.com/users/danielwpz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielwpz/subscriptions","organizations_url":"https://api.github.com/users/danielwpz/orgs","repos_url":"https://api.github.com/users/danielwpz/repos","events_url":"https://api.github.com/users/danielwpz/events{/privacy}","received_events_url":"https://api.github.com/users/danielwpz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/danielwpz/logger","description":"Development style logging middleware","fork":true,"url":"https://api.github.com/repos/danielwpz/logger","forks_url":"https://api.github.com/repos/danielwpz/logger/forks","keys_url":"https://api.github.com/repos/danielwpz/logger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danielwpz/logger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danielwpz/logger/teams","hooks_url":"https://api.github.com/repos/danielwpz/logger/hooks","issue_events_url":"https://api.github.com/repos/danielwpz/logger/issues/events{/number}","events_url":"https://api.github.com/repos/danielwpz/logger/events","assignees_url":"https://api.github.com/repos/danielwpz/logger/assignees{/user}","branches_url":"https://api.github.com/repos/danielwpz/logger/branches{/branch}","tags_url":"https://api.github.com/repos/danielwpz/logger/tags","blobs_url":"https://api.github.com/repos/danielwpz/logger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danielwpz/logger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danielwpz/logger/git/refs{/sha}","trees_url":"https://api.github.com/repos/danielwpz/logger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danielwpz/logger/statuses/{sha}","languages_url":"https://api.github.com/repos/danielwpz/logger/languages","stargazers_url":"https://api.github.com/repos/danielwpz/logger/stargazers","contributors_url":"https://api.github.com/repos/danielwpz/logger/contributors","subscribers_url":"https://api.github.com/repos/danielwpz/logger/subscribers","subscription_url":"https://api.github.com/repos/danielwpz/logger/subscription","commits_url":"https://api.github.com/repos/danielwpz/logger/commits{/sha}","git_commits_url":"https://api.github.com/repos/danielwpz/logger/git/commits{/sha}","comments_url":"https://api.github.com/repos/danielwpz/logger/comments{/number}","issue_comment_url":"https://api.github.com/repos/danielwpz/logger/issues/comments{/number}","contents_url":"https://api.github.com/repos/danielwpz/logger/contents/{+path}","compare_url":"https://api.github.com/repos/danielwpz/logger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danielwpz/logger/merges","archive_url":"https://api.github.com/repos/danielwpz/logger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danielwpz/logger/downloads","issues_url":"https://api.github.com/repos/danielwpz/logger/issues{/number}","pulls_url":"https://api.github.com/repos/danielwpz/logger/pulls{/number}","milestones_url":"https://api.github.com/repos/danielwpz/logger/milestones{/number}","notifications_url":"https://api.github.com/repos/danielwpz/logger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danielwpz/logger/labels{/name}","releases_url":"https://api.github.com/repos/danielwpz/logger/releases{/id}","deployments_url":"https://api.github.com/repos/danielwpz/logger/deployments","created_at":"2019-03-11T17:39:24Z","updated_at":"2019-03-11T17:39:26Z","pushed_at":"2019-03-11T21:49:34Z","git_url":"git://github.com/danielwpz/logger.git","ssh_url":"git@github.com:danielwpz/logger.git","clone_url":"https://github.com/danielwpz/logger.git","svn_url":"https://github.com/danielwpz/logger","homepage":null,"size":39,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"koajs:master","ref":"master","sha":"6bec1297e3040c2c90724bda716e2c66bfad303e","user":{"login":"koajs","id":5055057,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwNTUwNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/5055057?v=4","gravatar_id":"","url":"https://api.github.com/users/koajs","html_url":"https://github.com/koajs","followers_url":"https://api.github.com/users/koajs/followers","following_url":"https://api.github.com/users/koajs/following{/other_user}","gists_url":"https://api.github.com/users/koajs/gists{/gist_id}","starred_url":"https://api.github.com/users/koajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koajs/subscriptions","organizations_url":"https://api.github.com/users/koajs/orgs","repos_url":"https://api.github.com/users/koajs/repos","events_url":"https://api.github.com/users/koajs/events{/privacy}","received_events_url":"https://api.github.com/users/koajs/received_events","type":"Organization","site_admin":false},"repo":{"id":12174085,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE3NDA4NQ==","name":"logger","full_name":"koajs/logger","private":false,"owner":{"login":"koajs","id":5055057,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwNTUwNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/5055057?v=4","gravatar_id":"","url":"https://api.github.com/users/koajs","html_url":"https://github.com/koajs","followers_url":"https://api.github.com/users/koajs/followers","following_url":"https://api.github.com/users/koajs/following{/other_user}","gists_url":"https://api.github.com/users/koajs/gists{/gist_id}","starred_url":"https://api.github.com/users/koajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koajs/subscriptions","organizations_url":"https://api.github.com/users/koajs/orgs","repos_url":"https://api.github.com/users/koajs/repos","events_url":"https://api.github.com/users/koajs/events{/privacy}","received_events_url":"https://api.github.com/users/koajs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/koajs/logger","description":"Development style logging middleware","fork":false,"url":"https://api.github.com/repos/koajs/logger","forks_url":"https://api.github.com/repos/koajs/logger/forks","keys_url":"https://api.github.com/repos/koajs/logger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koajs/logger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koajs/logger/teams","hooks_url":"https://api.github.com/repos/koajs/logger/hooks","issue_events_url":"https://api.github.com/repos/koajs/logger/issues/events{/number}","events_url":"https://api.github.com/repos/koajs/logger/events","assignees_url":"https://api.github.com/repos/koajs/logger/assignees{/user}","branches_url":"https://api.github.com/repos/koajs/logger/branches{/branch}","tags_url":"https://api.github.com/repos/koajs/logger/tags","blobs_url":"https://api.github.com/repos/koajs/logger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koajs/logger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koajs/logger/git/refs{/sha}","trees_url":"https://api.github.com/repos/koajs/logger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koajs/logger/statuses/{sha}","languages_url":"https://api.github.com/repos/koajs/logger/languages","stargazers_url":"https://api.github.com/repos/koajs/logger/stargazers","contributors_url":"https://api.github.com/repos/koajs/logger/contributors","subscribers_url":"https://api.github.com/repos/koajs/logger/subscribers","subscription_url":"https://api.github.com/repos/koajs/logger/subscription","commits_url":"https://api.github.com/repos/koajs/logger/commits{/sha}","git_commits_url":"https://api.github.com/repos/koajs/logger/git/commits{/sha}","comments_url":"https://api.github.com/repos/koajs/logger/comments{/number}","issue_comment_url":"https://api.github.com/repos/koajs/logger/issues/comments{/number}","contents_url":"https://api.github.com/repos/koajs/logger/contents/{+path}","compare_url":"https://api.github.com/repos/koajs/logger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koajs/logger/merges","archive_url":"https://api.github.com/repos/koajs/logger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koajs/logger/downloads","issues_url":"https://api.github.com/repos/koajs/logger/issues{/number}","pulls_url":"https://api.github.com/repos/koajs/logger/pulls{/number}","milestones_url":"https://api.github.com/repos/koajs/logger/milestones{/number}","notifications_url":"https://api.github.com/repos/koajs/logger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koajs/logger/labels{/name}","releases_url":"https://api.github.com/repos/koajs/logger/releases{/id}","deployments_url":"https://api.github.com/repos/koajs/logger/deployments","created_at":"2013-08-17T05:45:12Z","updated_at":"2019-03-07T08:43:42Z","pushed_at":"2019-01-17T14:19:43Z","git_url":"git://github.com/koajs/logger.git","ssh_url":"git@github.com:koajs/logger.git","clone_url":"https://github.com/koajs/logger.git","svn_url":"https://github.com/koajs/logger","homepage":null,"size":39,"stargazers_count":432,"watchers_count":432,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":91,"mirror_url":null,"archived":false,"open_issues_count":13,"license":null,"forks":91,"open_issues":13,"watchers":432,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/koajs/logger/pulls/74"},"html":{"href":"https://github.com/koajs/logger/pull/74"},"issue":{"href":"https://api.github.com/repos/koajs/logger/issues/74"},"comments":{"href":"https://api.github.com/repos/koajs/logger/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/koajs/logger/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/koajs/logger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/koajs/logger/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/koajs/logger/statuses/a839a1062dd87703194d99d3f94d9f76cf93c702"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":23,"deletions":22,"changed_files":2}}
other: {"actor":{"display_login":"danielwpz"}}