{"action":"opened","number":894,"pull_request":{"url":"https://api.github.com/repos/tulibraries/tul_cob/pulls/894","id":242144680,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMTQ0Njgw","html_url":"https://github.com/tulibraries/tul_cob/pull/894","diff_url":"https://github.com/tulibraries/tul_cob/pull/894.diff","patch_url":"https://github.com/tulibraries/tul_cob/pull/894.patch","issue_url":"https://api.github.com/repos/tulibraries/tul_cob/issues/894","number":894,"state":"open","locked":false,"title":"[BL-779] Log API requests even on failure.","user":{"login":"dkinzer","id":444215,"node_id":"MDQ6VXNlcjQ0NDIxNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/444215?v=4","gravatar_id":"","url":"https://api.github.com/users/dkinzer","html_url":"https://github.com/dkinzer","followers_url":"https://api.github.com/users/dkinzer/followers","following_url":"https://api.github.com/users/dkinzer/following{/other_user}","gists_url":"https://api.github.com/users/dkinzer/gists{/gist_id}","starred_url":"https://api.github.com/users/dkinzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkinzer/subscriptions","organizations_url":"https://api.github.com/users/dkinzer/orgs","repos_url":"https://api.github.com/users/dkinzer/repos","events_url":"https://api.github.com/users/dkinzer/events{/privacy}","received_events_url":"https://api.github.com/users/dkinzer/received_events","type":"User","site_admin":false},"body":"REF BL-779\n\nWhen we make API calls we log the response process in order to obtain\nmetrics on these API requests.  However when the request raises an\nexception we fail to log the event.  We need to make sure that logging\nhappens even in the event of a raised exception.\n\nThis change updates the `json_request_logger` method to accept a block.\nWhen a block is passed it gets yielded before logging happens and if an\nexception is raised it is caught, logged and then released so that we do\nnot interrupt the proper behavior of the app just for logging.","created_at":"2019-01-04T00:03:44Z","updated_at":"2019-01-04T00:03:44Z","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/tulibraries/tul_cob/pulls/894/commits","review_comments_url":"https://api.github.com/repos/tulibraries/tul_cob/pulls/894/comments","review_comment_url":"https://api.github.com/repos/tulibraries/tul_cob/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tulibraries/tul_cob/issues/894/comments","statuses_url":"https://api.github.com/repos/tulibraries/tul_cob/statuses/b2427011512a10a60ca6e247364f8f5e507bd2d0","head":{"label":"tulibraries:BL-779-log-request-on-failure","ref":"BL-779-log-request-on-failure","sha":"b2427011512a10a60ca6e247364f8f5e507bd2d0","user":{"login":"tulibraries","id":7795826,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3OTU4MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/7795826?v=4","gravatar_id":"","url":"https://api.github.com/users/tulibraries","html_url":"https://github.com/tulibraries","followers_url":"https://api.github.com/users/tulibraries/followers","following_url":"https://api.github.com/users/tulibraries/following{/other_user}","gists_url":"https://api.github.com/users/tulibraries/gists{/gist_id}","starred_url":"https://api.github.com/users/tulibraries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tulibraries/subscriptions","organizations_url":"https://api.github.com/users/tulibraries/orgs","repos_url":"https://api.github.com/users/tulibraries/repos","events_url":"https://api.github.com/users/tulibraries/events{/privacy}","received_events_url":"https://api.github.com/users/tulibraries/received_events","type":"Organization","site_admin":false},"repo":{"id":73957201,"node_id":"MDEwOlJlcG9zaXRvcnk3Mzk1NzIwMQ==","name":"tul_cob","full_name":"tulibraries/tul_cob","private":false,"owner":{"login":"tulibraries","id":7795826,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3OTU4MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/7795826?v=4","gravatar_id":"","url":"https://api.github.com/users/tulibraries","html_url":"https://github.com/tulibraries","followers_url":"https://api.github.com/users/tulibraries/followers","following_url":"https://api.github.com/users/tulibraries/following{/other_user}","gists_url":"https://api.github.com/users/tulibraries/gists{/gist_id}","starred_url":"https://api.github.com/users/tulibraries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tulibraries/subscriptions","organizations_url":"https://api.github.com/users/tulibraries/orgs","repos_url":"https://api.github.com/users/tulibraries/repos","events_url":"https://api.github.com/users/tulibraries/events{/privacy}","received_events_url":"https://api.github.com/users/tulibraries/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/tulibraries/tul_cob","description":"Catalogue on Blacklight","fork":false,"url":"https://api.github.com/repos/tulibraries/tul_cob","forks_url":"https://api.github.com/repos/tulibraries/tul_cob/forks","keys_url":"https://api.github.com/repos/tulibraries/tul_cob/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tulibraries/tul_cob/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tulibraries/tul_cob/teams","hooks_url":"https://api.github.com/repos/tulibraries/tul_cob/hooks","issue_events_url":"https://api.github.com/repos/tulibraries/tul_cob/issues/events{/number}","events_url":"https://api.github.com/repos/tulibraries/tul_cob/events","assignees_url":"https://api.github.com/repos/tulibraries/tul_cob/assignees{/user}","branches_url":"https://api.github.com/repos/tulibraries/tul_cob/branches{/branch}","tags_url":"https://api.github.com/repos/tulibraries/tul_cob/tags","blobs_url":"https://api.github.com/repos/tulibraries/tul_cob/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tulibraries/tul_cob/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tulibraries/tul_cob/git/refs{/sha}","trees_url":"https://api.github.com/repos/tulibraries/tul_cob/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tulibraries/tul_cob/statuses/{sha}","languages_url":"https://api.github.com/repos/tulibraries/tul_cob/languages","stargazers_url":"https://api.github.com/repos/tulibraries/tul_cob/stargazers","contributors_url":"https://api.github.com/repos/tulibraries/tul_cob/contributors","subscribers_url":"https://api.github.com/repos/tulibraries/tul_cob/subscribers","subscription_url":"https://api.github.com/repos/tulibraries/tul_cob/subscription","commits_url":"https://api.github.com/repos/tulibraries/tul_cob/commits{/sha}","git_commits_url":"https://api.github.com/repos/tulibraries/tul_cob/git/commits{/sha}","comments_url":"https://api.github.com/repos/tulibraries/tul_cob/comments{/number}","issue_comment_url":"https://api.github.com/repos/tulibraries/tul_cob/issues/comments{/number}","contents_url":"https://api.github.com/repos/tulibraries/tul_cob/contents/{+path}","compare_url":"https://api.github.com/repos/tulibraries/tul_cob/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tulibraries/tul_cob/merges","archive_url":"https://api.github.com/repos/tulibraries/tul_cob/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tulibraries/tul_cob/downloads","issues_url":"https://api.github.com/repos/tulibraries/tul_cob/issues{/number}","pulls_url":"https://api.github.com/repos/tulibraries/tul_cob/pulls{/number}","milestones_url":"https://api.github.com/repos/tulibraries/tul_cob/milestones{/number}","notifications_url":"https://api.github.com/repos/tulibraries/tul_cob/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tulibraries/tul_cob/labels{/name}","releases_url":"https://api.github.com/repos/tulibraries/tul_cob/releases{/id}","deployments_url":"https://api.github.com/repos/tulibraries/tul_cob/deployments","created_at":"2016-11-16T20:14:21Z","updated_at":"2019-01-03T21:21:47Z","pushed_at":"2019-01-04T00:03:38Z","git_url":"git://github.com/tulibraries/tul_cob.git","ssh_url":"git@github.com:tulibraries/tul_cob.git","clone_url":"https://github.com/tulibraries/tul_cob.git","svn_url":"https://github.com/tulibraries/tul_cob","homepage":null,"size":26525,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":1,"watchers":6,"default_branch":"master"}},"base":{"label":"tulibraries:master","ref":"master","sha":"df0715b4d5c7fab64542a22fa763a362677a0bac","user":{"login":"tulibraries","id":7795826,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3OTU4MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/7795826?v=4","gravatar_id":"","url":"https://api.github.com/users/tulibraries","html_url":"https://github.com/tulibraries","followers_url":"https://api.github.com/users/tulibraries/followers","following_url":"https://api.github.com/users/tulibraries/following{/other_user}","gists_url":"https://api.github.com/users/tulibraries/gists{/gist_id}","starred_url":"https://api.github.com/users/tulibraries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tulibraries/subscriptions","organizations_url":"https://api.github.com/users/tulibraries/orgs","repos_url":"https://api.github.com/users/tulibraries/repos","events_url":"https://api.github.com/users/tulibraries/events{/privacy}","received_events_url":"https://api.github.com/users/tulibraries/received_events","type":"Organization","site_admin":false},"repo":{"id":73957201,"node_id":"MDEwOlJlcG9zaXRvcnk3Mzk1NzIwMQ==","name":"tul_cob","full_name":"tulibraries/tul_cob","private":false,"owner":{"login":"tulibraries","id":7795826,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3OTU4MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/7795826?v=4","gravatar_id":"","url":"https://api.github.com/users/tulibraries","html_url":"https://github.com/tulibraries","followers_url":"https://api.github.com/users/tulibraries/followers","following_url":"https://api.github.com/users/tulibraries/following{/other_user}","gists_url":"https://api.github.com/users/tulibraries/gists{/gist_id}","starred_url":"https://api.github.com/users/tulibraries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tulibraries/subscriptions","organizations_url":"https://api.github.com/users/tulibraries/orgs","repos_url":"https://api.github.com/users/tulibraries/repos","events_url":"https://api.github.com/users/tulibraries/events{/privacy}","received_events_url":"https://api.github.com/users/tulibraries/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/tulibraries/tul_cob","description":"Catalogue on Blacklight","fork":false,"url":"https://api.github.com/repos/tulibraries/tul_cob","forks_url":"https://api.github.com/repos/tulibraries/tul_cob/forks","keys_url":"https://api.github.com/repos/tulibraries/tul_cob/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tulibraries/tul_cob/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tulibraries/tul_cob/teams","hooks_url":"https://api.github.com/repos/tulibraries/tul_cob/hooks","issue_events_url":"https://api.github.com/repos/tulibraries/tul_cob/issues/events{/number}","events_url":"https://api.github.com/repos/tulibraries/tul_cob/events","assignees_url":"https://api.github.com/repos/tulibraries/tul_cob/assignees{/user}","branches_url":"https://api.github.com/repos/tulibraries/tul_cob/branches{/branch}","tags_url":"https://api.github.com/repos/tulibraries/tul_cob/tags","blobs_url":"https://api.github.com/repos/tulibraries/tul_cob/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tulibraries/tul_cob/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tulibraries/tul_cob/git/refs{/sha}","trees_url":"https://api.github.com/repos/tulibraries/tul_cob/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tulibraries/tul_cob/statuses/{sha}","languages_url":"https://api.github.com/repos/tulibraries/tul_cob/languages","stargazers_url":"https://api.github.com/repos/tulibraries/tul_cob/stargazers","contributors_url":"https://api.github.com/repos/tulibraries/tul_cob/contributors","subscribers_url":"https://api.github.com/repos/tulibraries/tul_cob/subscribers","subscription_url":"https://api.github.com/repos/tulibraries/tul_cob/subscription","commits_url":"https://api.github.com/repos/tulibraries/tul_cob/commits{/sha}","git_commits_url":"https://api.github.com/repos/tulibraries/tul_cob/git/commits{/sha}","comments_url":"https://api.github.com/repos/tulibraries/tul_cob/comments{/number}","issue_comment_url":"https://api.github.com/repos/tulibraries/tul_cob/issues/comments{/number}","contents_url":"https://api.github.com/repos/tulibraries/tul_cob/contents/{+path}","compare_url":"https://api.github.com/repos/tulibraries/tul_cob/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tulibraries/tul_cob/merges","archive_url":"https://api.github.com/repos/tulibraries/tul_cob/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tulibraries/tul_cob/downloads","issues_url":"https://api.github.com/repos/tulibraries/tul_cob/issues{/number}","pulls_url":"https://api.github.com/repos/tulibraries/tul_cob/pulls{/number}","milestones_url":"https://api.github.com/repos/tulibraries/tul_cob/milestones{/number}","notifications_url":"https://api.github.com/repos/tulibraries/tul_cob/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tulibraries/tul_cob/labels{/name}","releases_url":"https://api.github.com/repos/tulibraries/tul_cob/releases{/id}","deployments_url":"https://api.github.com/repos/tulibraries/tul_cob/deployments","created_at":"2016-11-16T20:14:21Z","updated_at":"2019-01-03T21:21:47Z","pushed_at":"2019-01-04T00:03:38Z","git_url":"git://github.com/tulibraries/tul_cob.git","ssh_url":"git@github.com:tulibraries/tul_cob.git","clone_url":"https://github.com/tulibraries/tul_cob.git","svn_url":"https://github.com/tulibraries/tul_cob","homepage":null,"size":26525,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tulibraries/tul_cob/pulls/894"},"html":{"href":"https://github.com/tulibraries/tul_cob/pull/894"},"issue":{"href":"https://api.github.com/repos/tulibraries/tul_cob/issues/894"},"comments":{"href":"https://api.github.com/repos/tulibraries/tul_cob/issues/894/comments"},"review_comments":{"href":"https://api.github.com/repos/tulibraries/tul_cob/pulls/894/comments"},"review_comment":{"href":"https://api.github.com/repos/tulibraries/tul_cob/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tulibraries/tul_cob/pulls/894/commits"},"statuses":{"href":"https://api.github.com/repos/tulibraries/tul_cob/statuses/b2427011512a10a60ca6e247364f8f5e507bd2d0"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":27,"deletions":21,"changed_files":3}}
{"actor":{"display_login":"dkinzer"}}