{"action":"created","comment":{"url":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls/comments/116669120","pull_request_review_id":38306582,"id":116669120,"diff_hunk":"@@ -1,13 +1,36 @@\n import Vapor\n+import Stacked\n \n public final class Provider: Vapor.Provider {\n \n     public static var repositoryName = \"Bugsnag\"\n \n-    var config: ConfigurationType\n+    var config: BugsnagConfig?\n     \n     public func boot(_ drop: Droplet) {\n-        drop.bugsnag = Reporter(drop: drop, config: config)\n+        guard let config = config else {\n+            fatalError(\"Bugsnag error - bugsnag.json config is missing.\")\n+        }\n+        \n+        let connectionManager = ConnectionManager(\n+            client: EngineClient.factory,\n+            url: config.endpoint\n+        )\n+        \n+        let transformer = PayloadTransformer(\n+            frameAddress: FrameAddress.self,\n+            environment: config.environment,\n+            apiKey: config.apiKey,\n+            defaultStackSize: config.stackTraceSize,\n+            defaultFilters: config.filters\n+        )\n+        \n+        let reporter = Reporter(\n+            environment: config.environment,\n+            notifyReleaseStages: config.notifyReleaseStages,\n+            connectionManager: connectionManager,\n+            transformer: transformer\n+        )","path":"Sources/Bugsnag/Provider.swift","position":35,"original_position":35,"commit_id":"d0c89fe6a3aa7b5e8fd43590e8dc478a93f486f7","original_commit_id":"d0c89fe6a3aa7b5e8fd43590e8dc478a93f486f7","user":{"login":"BrettRToomey","id":1977704,"avatar_url":"https://avatars0.githubusercontent.com/u/1977704?v=3","gravatar_id":"","url":"https://api.github.com/users/BrettRToomey","html_url":"https://github.com/BrettRToomey","followers_url":"https://api.github.com/users/BrettRToomey/followers","following_url":"https://api.github.com/users/BrettRToomey/following{/other_user}","gists_url":"https://api.github.com/users/BrettRToomey/gists{/gist_id}","starred_url":"https://api.github.com/users/BrettRToomey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrettRToomey/subscriptions","organizations_url":"https://api.github.com/users/BrettRToomey/orgs","repos_url":"https://api.github.com/users/BrettRToomey/repos","events_url":"https://api.github.com/users/BrettRToomey/events{/privacy}","received_events_url":"https://api.github.com/users/BrettRToomey/received_events","type":"User","site_admin":false},"body":"Add reporter to drop","created_at":"2017-05-16T07:12:45Z","updated_at":"2017-05-16T07:13:46Z","html_url":"https://github.com/nodes-vapor/bugsnag/pull/30#discussion_r116669120","pull_request_url":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls/comments/116669120"},"html":{"href":"https://github.com/nodes-vapor/bugsnag/pull/30#discussion_r116669120"},"pull_request":{"href":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls/30","id":120618176,"html_url":"https://github.com/nodes-vapor/bugsnag/pull/30","diff_url":"https://github.com/nodes-vapor/bugsnag/pull/30.diff","patch_url":"https://github.com/nodes-vapor/bugsnag/pull/30.patch","issue_url":"https://api.github.com/repos/nodes-vapor/bugsnag/issues/30","number":30,"state":"open","locked":false,"title":"Major refactor","user":{"login":"BrettRToomey","id":1977704,"avatar_url":"https://avatars0.githubusercontent.com/u/1977704?v=3","gravatar_id":"","url":"https://api.github.com/users/BrettRToomey","html_url":"https://github.com/BrettRToomey","followers_url":"https://api.github.com/users/BrettRToomey/followers","following_url":"https://api.github.com/users/BrettRToomey/following{/other_user}","gists_url":"https://api.github.com/users/BrettRToomey/gists{/gist_id}","starred_url":"https://api.github.com/users/BrettRToomey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrettRToomey/subscriptions","organizations_url":"https://api.github.com/users/BrettRToomey/orgs","repos_url":"https://api.github.com/users/BrettRToomey/repos","events_url":"https://api.github.com/users/BrettRToomey/events{/privacy}","received_events_url":"https://api.github.com/users/BrettRToomey/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-15T14:41:58Z","updated_at":"2017-05-16T07:13:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2e15fc4769d6a8ea73e3ba266df9266243ec34f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls/30/commits","review_comments_url":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls/30/comments","review_comment_url":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nodes-vapor/bugsnag/issues/30/comments","statuses_url":"https://api.github.com/repos/nodes-vapor/bugsnag/statuses/d0c89fe6a3aa7b5e8fd43590e8dc478a93f486f7","head":{"label":"nodes-vapor:refactor","ref":"refactor","sha":"d0c89fe6a3aa7b5e8fd43590e8dc478a93f486f7","user":{"login":"nodes-vapor","id":20334998,"avatar_url":"https://avatars2.githubusercontent.com/u/20334998?v=3","gravatar_id":"","url":"https://api.github.com/users/nodes-vapor","html_url":"https://github.com/nodes-vapor","followers_url":"https://api.github.com/users/nodes-vapor/followers","following_url":"https://api.github.com/users/nodes-vapor/following{/other_user}","gists_url":"https://api.github.com/users/nodes-vapor/gists{/gist_id}","starred_url":"https://api.github.com/users/nodes-vapor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodes-vapor/subscriptions","organizations_url":"https://api.github.com/users/nodes-vapor/orgs","repos_url":"https://api.github.com/users/nodes-vapor/repos","events_url":"https://api.github.com/users/nodes-vapor/events{/privacy}","received_events_url":"https://api.github.com/users/nodes-vapor/received_events","type":"Organization","site_admin":false},"repo":{"id":74880071,"name":"bugsnag","full_name":"nodes-vapor/bugsnag","owner":{"login":"nodes-vapor","id":20334998,"avatar_url":"https://avatars2.githubusercontent.com/u/20334998?v=3","gravatar_id":"","url":"https://api.github.com/users/nodes-vapor","html_url":"https://github.com/nodes-vapor","followers_url":"https://api.github.com/users/nodes-vapor/followers","following_url":"https://api.github.com/users/nodes-vapor/following{/other_user}","gists_url":"https://api.github.com/users/nodes-vapor/gists{/gist_id}","starred_url":"https://api.github.com/users/nodes-vapor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodes-vapor/subscriptions","organizations_url":"https://api.github.com/users/nodes-vapor/orgs","repos_url":"https://api.github.com/users/nodes-vapor/repos","events_url":"https://api.github.com/users/nodes-vapor/events{/privacy}","received_events_url":"https://api.github.com/users/nodes-vapor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodes-vapor/bugsnag","description":"Report errors with Bugsnag 🐛","fork":false,"url":"https://api.github.com/repos/nodes-vapor/bugsnag","forks_url":"https://api.github.com/repos/nodes-vapor/bugsnag/forks","keys_url":"https://api.github.com/repos/nodes-vapor/bugsnag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodes-vapor/bugsnag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodes-vapor/bugsnag/teams","hooks_url":"https://api.github.com/repos/nodes-vapor/bugsnag/hooks","issue_events_url":"https://api.github.com/repos/nodes-vapor/bugsnag/issues/events{/number}","events_url":"https://api.github.com/repos/nodes-vapor/bugsnag/events","assignees_url":"https://api.github.com/repos/nodes-vapor/bugsnag/assignees{/user}","branches_url":"https://api.github.com/repos/nodes-vapor/bugsnag/branches{/branch}","tags_url":"https://api.github.com/repos/nodes-vapor/bugsnag/tags","blobs_url":"https://api.github.com/repos/nodes-vapor/bugsnag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodes-vapor/bugsnag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodes-vapor/bugsnag/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodes-vapor/bugsnag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodes-vapor/bugsnag/statuses/{sha}","languages_url":"https://api.github.com/repos/nodes-vapor/bugsnag/languages","stargazers_url":"https://api.github.com/repos/nodes-vapor/bugsnag/stargazers","contributors_url":"https://api.github.com/repos/nodes-vapor/bugsnag/contributors","subscribers_url":"https://api.github.com/repos/nodes-vapor/bugsnag/subscribers","subscription_url":"https://api.github.com/repos/nodes-vapor/bugsnag/subscription","commits_url":"https://api.github.com/repos/nodes-vapor/bugsnag/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodes-vapor/bugsnag/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodes-vapor/bugsnag/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodes-vapor/bugsnag/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodes-vapor/bugsnag/contents/{+path}","compare_url":"https://api.github.com/repos/nodes-vapor/bugsnag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodes-vapor/bugsnag/merges","archive_url":"https://api.github.com/repos/nodes-vapor/bugsnag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodes-vapor/bugsnag/downloads","issues_url":"https://api.github.com/repos/nodes-vapor/bugsnag/issues{/number}","pulls_url":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls{/number}","milestones_url":"https://api.github.com/repos/nodes-vapor/bugsnag/milestones{/number}","notifications_url":"https://api.github.com/repos/nodes-vapor/bugsnag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodes-vapor/bugsnag/labels{/name}","releases_url":"https://api.github.com/repos/nodes-vapor/bugsnag/releases{/id}","deployments_url":"https://api.github.com/repos/nodes-vapor/bugsnag/deployments","created_at":"2016-11-27T10:07:18Z","updated_at":"2017-05-01T13:29:50Z","pushed_at":"2017-05-15T14:41:58Z","git_url":"git://github.com/nodes-vapor/bugsnag.git","ssh_url":"git@github.com:nodes-vapor/bugsnag.git","clone_url":"https://github.com/nodes-vapor/bugsnag.git","svn_url":"https://github.com/nodes-vapor/bugsnag","homepage":"","size":70,"stargazers_count":7,"watchers_count":7,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":7,"default_branch":"master"}},"base":{"label":"nodes-vapor:master","ref":"master","sha":"e6bba839539331ca06223c815bc2f2fa3d760fff","user":{"login":"nodes-vapor","id":20334998,"avatar_url":"https://avatars2.githubusercontent.com/u/20334998?v=3","gravatar_id":"","url":"https://api.github.com/users/nodes-vapor","html_url":"https://github.com/nodes-vapor","followers_url":"https://api.github.com/users/nodes-vapor/followers","following_url":"https://api.github.com/users/nodes-vapor/following{/other_user}","gists_url":"https://api.github.com/users/nodes-vapor/gists{/gist_id}","starred_url":"https://api.github.com/users/nodes-vapor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodes-vapor/subscriptions","organizations_url":"https://api.github.com/users/nodes-vapor/orgs","repos_url":"https://api.github.com/users/nodes-vapor/repos","events_url":"https://api.github.com/users/nodes-vapor/events{/privacy}","received_events_url":"https://api.github.com/users/nodes-vapor/received_events","type":"Organization","site_admin":false},"repo":{"id":74880071,"name":"bugsnag","full_name":"nodes-vapor/bugsnag","owner":{"login":"nodes-vapor","id":20334998,"avatar_url":"https://avatars2.githubusercontent.com/u/20334998?v=3","gravatar_id":"","url":"https://api.github.com/users/nodes-vapor","html_url":"https://github.com/nodes-vapor","followers_url":"https://api.github.com/users/nodes-vapor/followers","following_url":"https://api.github.com/users/nodes-vapor/following{/other_user}","gists_url":"https://api.github.com/users/nodes-vapor/gists{/gist_id}","starred_url":"https://api.github.com/users/nodes-vapor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodes-vapor/subscriptions","organizations_url":"https://api.github.com/users/nodes-vapor/orgs","repos_url":"https://api.github.com/users/nodes-vapor/repos","events_url":"https://api.github.com/users/nodes-vapor/events{/privacy}","received_events_url":"https://api.github.com/users/nodes-vapor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodes-vapor/bugsnag","description":"Report errors with Bugsnag 🐛","fork":false,"url":"https://api.github.com/repos/nodes-vapor/bugsnag","forks_url":"https://api.github.com/repos/nodes-vapor/bugsnag/forks","keys_url":"https://api.github.com/repos/nodes-vapor/bugsnag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodes-vapor/bugsnag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodes-vapor/bugsnag/teams","hooks_url":"https://api.github.com/repos/nodes-vapor/bugsnag/hooks","issue_events_url":"https://api.github.com/repos/nodes-vapor/bugsnag/issues/events{/number}","events_url":"https://api.github.com/repos/nodes-vapor/bugsnag/events","assignees_url":"https://api.github.com/repos/nodes-vapor/bugsnag/assignees{/user}","branches_url":"https://api.github.com/repos/nodes-vapor/bugsnag/branches{/branch}","tags_url":"https://api.github.com/repos/nodes-vapor/bugsnag/tags","blobs_url":"https://api.github.com/repos/nodes-vapor/bugsnag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodes-vapor/bugsnag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodes-vapor/bugsnag/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodes-vapor/bugsnag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodes-vapor/bugsnag/statuses/{sha}","languages_url":"https://api.github.com/repos/nodes-vapor/bugsnag/languages","stargazers_url":"https://api.github.com/repos/nodes-vapor/bugsnag/stargazers","contributors_url":"https://api.github.com/repos/nodes-vapor/bugsnag/contributors","subscribers_url":"https://api.github.com/repos/nodes-vapor/bugsnag/subscribers","subscription_url":"https://api.github.com/repos/nodes-vapor/bugsnag/subscription","commits_url":"https://api.github.com/repos/nodes-vapor/bugsnag/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodes-vapor/bugsnag/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodes-vapor/bugsnag/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodes-vapor/bugsnag/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodes-vapor/bugsnag/contents/{+path}","compare_url":"https://api.github.com/repos/nodes-vapor/bugsnag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodes-vapor/bugsnag/merges","archive_url":"https://api.github.com/repos/nodes-vapor/bugsnag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodes-vapor/bugsnag/downloads","issues_url":"https://api.github.com/repos/nodes-vapor/bugsnag/issues{/number}","pulls_url":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls{/number}","milestones_url":"https://api.github.com/repos/nodes-vapor/bugsnag/milestones{/number}","notifications_url":"https://api.github.com/repos/nodes-vapor/bugsnag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodes-vapor/bugsnag/labels{/name}","releases_url":"https://api.github.com/repos/nodes-vapor/bugsnag/releases{/id}","deployments_url":"https://api.github.com/repos/nodes-vapor/bugsnag/deployments","created_at":"2016-11-27T10:07:18Z","updated_at":"2017-05-01T13:29:50Z","pushed_at":"2017-05-15T14:41:58Z","git_url":"git://github.com/nodes-vapor/bugsnag.git","ssh_url":"git@github.com:nodes-vapor/bugsnag.git","clone_url":"https://github.com/nodes-vapor/bugsnag.git","svn_url":"https://github.com/nodes-vapor/bugsnag","homepage":"","size":70,"stargazers_count":7,"watchers_count":7,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls/30"},"html":{"href":"https://github.com/nodes-vapor/bugsnag/pull/30"},"issue":{"href":"https://api.github.com/repos/nodes-vapor/bugsnag/issues/30"},"comments":{"href":"https://api.github.com/repos/nodes-vapor/bugsnag/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nodes-vapor/bugsnag/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/nodes-vapor/bugsnag/statuses/d0c89fe6a3aa7b5e8fd43590e8dc478a93f486f7"}}}}
{"actor":{"display_login":"BrettRToomey"}}