{"action":"created","comment":{"url":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls/comments/234669180","pull_request_review_id":176359228,"id":234669180,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDY2OTE4MA==","diff_hunk":"@@ -43,6 +43,15 @@ class CodaUI {\n     fbt.init();\n     auth.init();\n     snackbar.init();\n+\n+    window.onError.listen((e) {\n+      if (e is ErrorEvent) {\n+        var error = e.error;\n+        var stacktraceOrFilename = error is Error ? error.stackTrace : e.filename;\n+        log.severe('${e.message}: ${stacktraceOrFilename}');","path":"webapp/lib/main_ui.dart","position":9,"original_position":9,"commit_id":"2767c39ad9a69b74c60ff6a985aa835183ee202a","original_commit_id":"2767c39ad9a69b74c60ff6a985aa835183ee202a","user":{"login":"marianamarasoiu","id":1173973,"node_id":"MDQ6VXNlcjExNzM5NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1173973?v=4","gravatar_id":"","url":"https://api.github.com/users/marianamarasoiu","html_url":"https://github.com/marianamarasoiu","followers_url":"https://api.github.com/users/marianamarasoiu/followers","following_url":"https://api.github.com/users/marianamarasoiu/following{/other_user}","gists_url":"https://api.github.com/users/marianamarasoiu/gists{/gist_id}","starred_url":"https://api.github.com/users/marianamarasoiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marianamarasoiu/subscriptions","organizations_url":"https://api.github.com/users/marianamarasoiu/orgs","repos_url":"https://api.github.com/users/marianamarasoiu/repos","events_url":"https://api.github.com/users/marianamarasoiu/events{/privacy}","received_events_url":"https://api.github.com/users/marianamarasoiu/received_events","type":"User","site_admin":false},"body":"Thanks, that looks so much better. Done.","created_at":"2018-11-19T15:43:08Z","updated_at":"2018-11-19T15:43:08Z","html_url":"https://github.com/AfricasVoices/CodaV2/pull/143#discussion_r234669180","pull_request_url":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls/143","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls/comments/234669180"},"html":{"href":"https://github.com/AfricasVoices/CodaV2/pull/143#discussion_r234669180"},"pull_request":{"href":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls/143"}},"in_reply_to_id":233945665},"pull_request":{"url":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls/143","id":230863585,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwODYzNTg1","html_url":"https://github.com/AfricasVoices/CodaV2/pull/143","diff_url":"https://github.com/AfricasVoices/CodaV2/pull/143.diff","patch_url":"https://github.com/AfricasVoices/CodaV2/pull/143.patch","issue_url":"https://api.github.com/repos/AfricasVoices/CodaV2/issues/143","number":143,"state":"open","locked":false,"title":"add log.severe and global listener for errors","user":{"login":"marianamarasoiu","id":1173973,"node_id":"MDQ6VXNlcjExNzM5NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1173973?v=4","gravatar_id":"","url":"https://api.github.com/users/marianamarasoiu","html_url":"https://github.com/marianamarasoiu","followers_url":"https://api.github.com/users/marianamarasoiu/followers","following_url":"https://api.github.com/users/marianamarasoiu/following{/other_user}","gists_url":"https://api.github.com/users/marianamarasoiu/gists{/gist_id}","starred_url":"https://api.github.com/users/marianamarasoiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marianamarasoiu/subscriptions","organizations_url":"https://api.github.com/users/marianamarasoiu/orgs","repos_url":"https://api.github.com/users/marianamarasoiu/repos","events_url":"https://api.github.com/users/marianamarasoiu/events{/privacy}","received_events_url":"https://api.github.com/users/marianamarasoiu/received_events","type":"User","site_admin":false},"body":"WIP for #106 - @lukechurch let me know what you think of the approach\r\n\r\nWe may want to replace what we show in the UI with a more user friendly message, though that may mean catching some of the errors we know about earlier and logging them then.","created_at":"2018-11-14T14:53:07Z","updated_at":"2018-11-19T15:43:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa7ff1036d1dbc5470049c74280487e8f6cc1a8c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls/143/commits","review_comments_url":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls/143/comments","review_comment_url":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AfricasVoices/CodaV2/issues/143/comments","statuses_url":"https://api.github.com/repos/AfricasVoices/CodaV2/statuses/2767c39ad9a69b74c60ff6a985aa835183ee202a","head":{"label":"AfricasVoices:mariana-error-logging","ref":"mariana-error-logging","sha":"2767c39ad9a69b74c60ff6a985aa835183ee202a","user":{"login":"AfricasVoices","id":35370544,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MzcwNTQ0","avatar_url":"https://avatars1.githubusercontent.com/u/35370544?v=4","gravatar_id":"","url":"https://api.github.com/users/AfricasVoices","html_url":"https://github.com/AfricasVoices","followers_url":"https://api.github.com/users/AfricasVoices/followers","following_url":"https://api.github.com/users/AfricasVoices/following{/other_user}","gists_url":"https://api.github.com/users/AfricasVoices/gists{/gist_id}","starred_url":"https://api.github.com/users/AfricasVoices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AfricasVoices/subscriptions","organizations_url":"https://api.github.com/users/AfricasVoices/orgs","repos_url":"https://api.github.com/users/AfricasVoices/repos","events_url":"https://api.github.com/users/AfricasVoices/events{/privacy}","received_events_url":"https://api.github.com/users/AfricasVoices/received_events","type":"Organization","site_admin":false},"repo":{"id":149588917,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1ODg5MTc=","name":"CodaV2","full_name":"AfricasVoices/CodaV2","private":false,"owner":{"login":"AfricasVoices","id":35370544,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MzcwNTQ0","avatar_url":"https://avatars1.githubusercontent.com/u/35370544?v=4","gravatar_id":"","url":"https://api.github.com/users/AfricasVoices","html_url":"https://github.com/AfricasVoices","followers_url":"https://api.github.com/users/AfricasVoices/followers","following_url":"https://api.github.com/users/AfricasVoices/following{/other_user}","gists_url":"https://api.github.com/users/AfricasVoices/gists{/gist_id}","starred_url":"https://api.github.com/users/AfricasVoices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AfricasVoices/subscriptions","organizations_url":"https://api.github.com/users/AfricasVoices/orgs","repos_url":"https://api.github.com/users/AfricasVoices/repos","events_url":"https://api.github.com/users/AfricasVoices/events{/privacy}","received_events_url":"https://api.github.com/users/AfricasVoices/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AfricasVoices/CodaV2","description":null,"fork":false,"url":"https://api.github.com/repos/AfricasVoices/CodaV2","forks_url":"https://api.github.com/repos/AfricasVoices/CodaV2/forks","keys_url":"https://api.github.com/repos/AfricasVoices/CodaV2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AfricasVoices/CodaV2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AfricasVoices/CodaV2/teams","hooks_url":"https://api.github.com/repos/AfricasVoices/CodaV2/hooks","issue_events_url":"https://api.github.com/repos/AfricasVoices/CodaV2/issues/events{/number}","events_url":"https://api.github.com/repos/AfricasVoices/CodaV2/events","assignees_url":"https://api.github.com/repos/AfricasVoices/CodaV2/assignees{/user}","branches_url":"https://api.github.com/repos/AfricasVoices/CodaV2/branches{/branch}","tags_url":"https://api.github.com/repos/AfricasVoices/CodaV2/tags","blobs_url":"https://api.github.com/repos/AfricasVoices/CodaV2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AfricasVoices/CodaV2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AfricasVoices/CodaV2/git/refs{/sha}","trees_url":"https://api.github.com/repos/AfricasVoices/CodaV2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AfricasVoices/CodaV2/statuses/{sha}","languages_url":"https://api.github.com/repos/AfricasVoices/CodaV2/languages","stargazers_url":"https://api.github.com/repos/AfricasVoices/CodaV2/stargazers","contributors_url":"https://api.github.com/repos/AfricasVoices/CodaV2/contributors","subscribers_url":"https://api.github.com/repos/AfricasVoices/CodaV2/subscribers","subscription_url":"https://api.github.com/repos/AfricasVoices/CodaV2/subscription","commits_url":"https://api.github.com/repos/AfricasVoices/CodaV2/commits{/sha}","git_commits_url":"https://api.github.com/repos/AfricasVoices/CodaV2/git/commits{/sha}","comments_url":"https://api.github.com/repos/AfricasVoices/CodaV2/comments{/number}","issue_comment_url":"https://api.github.com/repos/AfricasVoices/CodaV2/issues/comments{/number}","contents_url":"https://api.github.com/repos/AfricasVoices/CodaV2/contents/{+path}","compare_url":"https://api.github.com/repos/AfricasVoices/CodaV2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AfricasVoices/CodaV2/merges","archive_url":"https://api.github.com/repos/AfricasVoices/CodaV2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AfricasVoices/CodaV2/downloads","issues_url":"https://api.github.com/repos/AfricasVoices/CodaV2/issues{/number}","pulls_url":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls{/number}","milestones_url":"https://api.github.com/repos/AfricasVoices/CodaV2/milestones{/number}","notifications_url":"https://api.github.com/repos/AfricasVoices/CodaV2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AfricasVoices/CodaV2/labels{/name}","releases_url":"https://api.github.com/repos/AfricasVoices/CodaV2/releases{/id}","deployments_url":"https://api.github.com/repos/AfricasVoices/CodaV2/deployments","created_at":"2018-09-20T09:59:17Z","updated_at":"2018-11-16T13:26:11Z","pushed_at":"2018-11-16T13:26:09Z","git_url":"git://github.com/AfricasVoices/CodaV2.git","ssh_url":"git@github.com:AfricasVoices/CodaV2.git","clone_url":"https://github.com/AfricasVoices/CodaV2.git","svn_url":"https://github.com/AfricasVoices/CodaV2","homepage":null,"size":4031,"stargazers_count":0,"watchers_count":0,"language":"Dart","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":32,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":32,"watchers":0,"default_branch":"master"}},"base":{"label":"AfricasVoices:master","ref":"master","sha":"37aaca089e9b52ee24e4ba22e7528aa08c4f964b","user":{"login":"AfricasVoices","id":35370544,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MzcwNTQ0","avatar_url":"https://avatars1.githubusercontent.com/u/35370544?v=4","gravatar_id":"","url":"https://api.github.com/users/AfricasVoices","html_url":"https://github.com/AfricasVoices","followers_url":"https://api.github.com/users/AfricasVoices/followers","following_url":"https://api.github.com/users/AfricasVoices/following{/other_user}","gists_url":"https://api.github.com/users/AfricasVoices/gists{/gist_id}","starred_url":"https://api.github.com/users/AfricasVoices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AfricasVoices/subscriptions","organizations_url":"https://api.github.com/users/AfricasVoices/orgs","repos_url":"https://api.github.com/users/AfricasVoices/repos","events_url":"https://api.github.com/users/AfricasVoices/events{/privacy}","received_events_url":"https://api.github.com/users/AfricasVoices/received_events","type":"Organization","site_admin":false},"repo":{"id":149588917,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1ODg5MTc=","name":"CodaV2","full_name":"AfricasVoices/CodaV2","private":false,"owner":{"login":"AfricasVoices","id":35370544,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MzcwNTQ0","avatar_url":"https://avatars1.githubusercontent.com/u/35370544?v=4","gravatar_id":"","url":"https://api.github.com/users/AfricasVoices","html_url":"https://github.com/AfricasVoices","followers_url":"https://api.github.com/users/AfricasVoices/followers","following_url":"https://api.github.com/users/AfricasVoices/following{/other_user}","gists_url":"https://api.github.com/users/AfricasVoices/gists{/gist_id}","starred_url":"https://api.github.com/users/AfricasVoices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AfricasVoices/subscriptions","organizations_url":"https://api.github.com/users/AfricasVoices/orgs","repos_url":"https://api.github.com/users/AfricasVoices/repos","events_url":"https://api.github.com/users/AfricasVoices/events{/privacy}","received_events_url":"https://api.github.com/users/AfricasVoices/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AfricasVoices/CodaV2","description":null,"fork":false,"url":"https://api.github.com/repos/AfricasVoices/CodaV2","forks_url":"https://api.github.com/repos/AfricasVoices/CodaV2/forks","keys_url":"https://api.github.com/repos/AfricasVoices/CodaV2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AfricasVoices/CodaV2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AfricasVoices/CodaV2/teams","hooks_url":"https://api.github.com/repos/AfricasVoices/CodaV2/hooks","issue_events_url":"https://api.github.com/repos/AfricasVoices/CodaV2/issues/events{/number}","events_url":"https://api.github.com/repos/AfricasVoices/CodaV2/events","assignees_url":"https://api.github.com/repos/AfricasVoices/CodaV2/assignees{/user}","branches_url":"https://api.github.com/repos/AfricasVoices/CodaV2/branches{/branch}","tags_url":"https://api.github.com/repos/AfricasVoices/CodaV2/tags","blobs_url":"https://api.github.com/repos/AfricasVoices/CodaV2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AfricasVoices/CodaV2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AfricasVoices/CodaV2/git/refs{/sha}","trees_url":"https://api.github.com/repos/AfricasVoices/CodaV2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AfricasVoices/CodaV2/statuses/{sha}","languages_url":"https://api.github.com/repos/AfricasVoices/CodaV2/languages","stargazers_url":"https://api.github.com/repos/AfricasVoices/CodaV2/stargazers","contributors_url":"https://api.github.com/repos/AfricasVoices/CodaV2/contributors","subscribers_url":"https://api.github.com/repos/AfricasVoices/CodaV2/subscribers","subscription_url":"https://api.github.com/repos/AfricasVoices/CodaV2/subscription","commits_url":"https://api.github.com/repos/AfricasVoices/CodaV2/commits{/sha}","git_commits_url":"https://api.github.com/repos/AfricasVoices/CodaV2/git/commits{/sha}","comments_url":"https://api.github.com/repos/AfricasVoices/CodaV2/comments{/number}","issue_comment_url":"https://api.github.com/repos/AfricasVoices/CodaV2/issues/comments{/number}","contents_url":"https://api.github.com/repos/AfricasVoices/CodaV2/contents/{+path}","compare_url":"https://api.github.com/repos/AfricasVoices/CodaV2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AfricasVoices/CodaV2/merges","archive_url":"https://api.github.com/repos/AfricasVoices/CodaV2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AfricasVoices/CodaV2/downloads","issues_url":"https://api.github.com/repos/AfricasVoices/CodaV2/issues{/number}","pulls_url":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls{/number}","milestones_url":"https://api.github.com/repos/AfricasVoices/CodaV2/milestones{/number}","notifications_url":"https://api.github.com/repos/AfricasVoices/CodaV2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AfricasVoices/CodaV2/labels{/name}","releases_url":"https://api.github.com/repos/AfricasVoices/CodaV2/releases{/id}","deployments_url":"https://api.github.com/repos/AfricasVoices/CodaV2/deployments","created_at":"2018-09-20T09:59:17Z","updated_at":"2018-11-16T13:26:11Z","pushed_at":"2018-11-16T13:26:09Z","git_url":"git://github.com/AfricasVoices/CodaV2.git","ssh_url":"git@github.com:AfricasVoices/CodaV2.git","clone_url":"https://github.com/AfricasVoices/CodaV2.git","svn_url":"https://github.com/AfricasVoices/CodaV2","homepage":null,"size":4031,"stargazers_count":0,"watchers_count":0,"language":"Dart","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":32,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":32,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls/143"},"html":{"href":"https://github.com/AfricasVoices/CodaV2/pull/143"},"issue":{"href":"https://api.github.com/repos/AfricasVoices/CodaV2/issues/143"},"comments":{"href":"https://api.github.com/repos/AfricasVoices/CodaV2/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AfricasVoices/CodaV2/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/AfricasVoices/CodaV2/statuses/2767c39ad9a69b74c60ff6a985aa835183ee202a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"marianamarasoiu"}}