{"action":"created","comment":{"url":"https://api.github.com/repos/digipost/ios/pulls/comments/31616267","id":31616267,"diff_hunk":"@@ -445,6 +452,8 @@ class APIClient : NSObject, NSURLSessionTaskDelegate, NSURLSessionDelegate, NSUR\n                 }, failure: { (error) -> Void in\n                     if error.code == Int(SHCOAuthErrorCode.InvalidRefreshTokenResponse.rawValue) {\n                         self.deleteRefreshTokensAndLogoutUser()\n+                    } else {\n+                        Logger.dpostLogError(\"Deleting oauth tokens and logout user. Not invalid refresh token.  error: \\(error)\")","path":"Digipost/APIClient.swift","position":57,"original_position":57,"commit_id":"ce78fc26130bdc0bb497ee28856a2c8771c493d0","original_commit_id":"ce78fc26130bdc0bb497ee28856a2c8771c493d0","user":{"login":"lillesand","id":92167,"avatar_url":"https://avatars.githubusercontent.com/u/92167?v=3","gravatar_id":"","url":"https://api.github.com/users/lillesand","html_url":"https://github.com/lillesand","followers_url":"https://api.github.com/users/lillesand/followers","following_url":"https://api.github.com/users/lillesand/following{/other_user}","gists_url":"https://api.github.com/users/lillesand/gists{/gist_id}","starred_url":"https://api.github.com/users/lillesand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lillesand/subscriptions","organizations_url":"https://api.github.com/users/lillesand/orgs","repos_url":"https://api.github.com/users/lillesand/repos","events_url":"https://api.github.com/users/lillesand/events{/privacy}","received_events_url":"https://api.github.com/users/lillesand/received_events","type":"User","site_admin":false},"body":"Don't log the full error object, be more specific, so we don't accidentally log something we don't want to","created_at":"2015-06-03T12:12:46Z","updated_at":"2015-06-03T12:12:46Z","html_url":"https://github.com/digipost/ios/pull/8#discussion_r31616267","pull_request_url":"https://api.github.com/repos/digipost/ios/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/digipost/ios/pulls/comments/31616267"},"html":{"href":"https://github.com/digipost/ios/pull/8#discussion_r31616267"},"pull_request":{"href":"https://api.github.com/repos/digipost/ios/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/digipost/ios/pulls/8","id":36825000,"html_url":"https://github.com/digipost/ios/pull/8","diff_url":"https://github.com/digipost/ios/pull/8.diff","patch_url":"https://github.com/digipost/ios/pull/8.patch","issue_url":"https://api.github.com/repos/digipost/ios/issues/8","number":8,"state":"open","locked":false,"title":"Pre release fixing","user":{"login":"haaakon","id":1579465,"avatar_url":"https://avatars.githubusercontent.com/u/1579465?v=3","gravatar_id":"","url":"https://api.github.com/users/haaakon","html_url":"https://github.com/haaakon","followers_url":"https://api.github.com/users/haaakon/followers","following_url":"https://api.github.com/users/haaakon/following{/other_user}","gists_url":"https://api.github.com/users/haaakon/gists{/gist_id}","starred_url":"https://api.github.com/users/haaakon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haaakon/subscriptions","organizations_url":"https://api.github.com/users/haaakon/orgs","repos_url":"https://api.github.com/users/haaakon/repos","events_url":"https://api.github.com/users/haaakon/events{/privacy}","received_events_url":"https://api.github.com/users/haaakon/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-03T12:02:17Z","updated_at":"2015-06-03T12:12:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"898f5894124b42e39f23af227d3998262e6743ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/digipost/ios/pulls/8/commits","review_comments_url":"https://api.github.com/repos/digipost/ios/pulls/8/comments","review_comment_url":"https://api.github.com/repos/digipost/ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digipost/ios/issues/8/comments","statuses_url":"https://api.github.com/repos/digipost/ios/statuses/ce78fc26130bdc0bb497ee28856a2c8771c493d0","head":{"label":"digipost:pre-release-fixing","ref":"pre-release-fixing","sha":"ce78fc26130bdc0bb497ee28856a2c8771c493d0","user":{"login":"digipost","id":1013853,"avatar_url":"https://avatars.githubusercontent.com/u/1013853?v=3","gravatar_id":"","url":"https://api.github.com/users/digipost","html_url":"https://github.com/digipost","followers_url":"https://api.github.com/users/digipost/followers","following_url":"https://api.github.com/users/digipost/following{/other_user}","gists_url":"https://api.github.com/users/digipost/gists{/gist_id}","starred_url":"https://api.github.com/users/digipost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digipost/subscriptions","organizations_url":"https://api.github.com/users/digipost/orgs","repos_url":"https://api.github.com/users/digipost/repos","events_url":"https://api.github.com/users/digipost/events{/privacy}","received_events_url":"https://api.github.com/users/digipost/received_events","type":"Organization","site_admin":false},"repo":{"id":14979171,"name":"ios","full_name":"digipost/ios","owner":{"login":"digipost","id":1013853,"avatar_url":"https://avatars.githubusercontent.com/u/1013853?v=3","gravatar_id":"","url":"https://api.github.com/users/digipost","html_url":"https://github.com/digipost","followers_url":"https://api.github.com/users/digipost/followers","following_url":"https://api.github.com/users/digipost/following{/other_user}","gists_url":"https://api.github.com/users/digipost/gists{/gist_id}","starred_url":"https://api.github.com/users/digipost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digipost/subscriptions","organizations_url":"https://api.github.com/users/digipost/orgs","repos_url":"https://api.github.com/users/digipost/repos","events_url":"https://api.github.com/users/digipost/events{/privacy}","received_events_url":"https://api.github.com/users/digipost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digipost/ios","description":"Digipost for iOS","fork":false,"url":"https://api.github.com/repos/digipost/ios","forks_url":"https://api.github.com/repos/digipost/ios/forks","keys_url":"https://api.github.com/repos/digipost/ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digipost/ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digipost/ios/teams","hooks_url":"https://api.github.com/repos/digipost/ios/hooks","issue_events_url":"https://api.github.com/repos/digipost/ios/issues/events{/number}","events_url":"https://api.github.com/repos/digipost/ios/events","assignees_url":"https://api.github.com/repos/digipost/ios/assignees{/user}","branches_url":"https://api.github.com/repos/digipost/ios/branches{/branch}","tags_url":"https://api.github.com/repos/digipost/ios/tags","blobs_url":"https://api.github.com/repos/digipost/ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digipost/ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digipost/ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/digipost/ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digipost/ios/statuses/{sha}","languages_url":"https://api.github.com/repos/digipost/ios/languages","stargazers_url":"https://api.github.com/repos/digipost/ios/stargazers","contributors_url":"https://api.github.com/repos/digipost/ios/contributors","subscribers_url":"https://api.github.com/repos/digipost/ios/subscribers","subscription_url":"https://api.github.com/repos/digipost/ios/subscription","commits_url":"https://api.github.com/repos/digipost/ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/digipost/ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/digipost/ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/digipost/ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/digipost/ios/contents/{+path}","compare_url":"https://api.github.com/repos/digipost/ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digipost/ios/merges","archive_url":"https://api.github.com/repos/digipost/ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digipost/ios/downloads","issues_url":"https://api.github.com/repos/digipost/ios/issues{/number}","pulls_url":"https://api.github.com/repos/digipost/ios/pulls{/number}","milestones_url":"https://api.github.com/repos/digipost/ios/milestones{/number}","notifications_url":"https://api.github.com/repos/digipost/ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digipost/ios/labels{/name}","releases_url":"https://api.github.com/repos/digipost/ios/releases{/id}","created_at":"2013-12-06T09:48:19Z","updated_at":"2015-04-30T17:16:29Z","pushed_at":"2015-06-03T12:02:17Z","git_url":"git://github.com/digipost/ios.git","ssh_url":"git@github.com:digipost/ios.git","clone_url":"https://github.com/digipost/ios.git","svn_url":"https://github.com/digipost/ios","homepage":null,"size":211497,"stargazers_count":11,"watchers_count":11,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":11,"default_branch":"master"}},"base":{"label":"digipost:master","ref":"master","sha":"417548ee8323197af3e8a3508ce5e49651884117","user":{"login":"digipost","id":1013853,"avatar_url":"https://avatars.githubusercontent.com/u/1013853?v=3","gravatar_id":"","url":"https://api.github.com/users/digipost","html_url":"https://github.com/digipost","followers_url":"https://api.github.com/users/digipost/followers","following_url":"https://api.github.com/users/digipost/following{/other_user}","gists_url":"https://api.github.com/users/digipost/gists{/gist_id}","starred_url":"https://api.github.com/users/digipost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digipost/subscriptions","organizations_url":"https://api.github.com/users/digipost/orgs","repos_url":"https://api.github.com/users/digipost/repos","events_url":"https://api.github.com/users/digipost/events{/privacy}","received_events_url":"https://api.github.com/users/digipost/received_events","type":"Organization","site_admin":false},"repo":{"id":14979171,"name":"ios","full_name":"digipost/ios","owner":{"login":"digipost","id":1013853,"avatar_url":"https://avatars.githubusercontent.com/u/1013853?v=3","gravatar_id":"","url":"https://api.github.com/users/digipost","html_url":"https://github.com/digipost","followers_url":"https://api.github.com/users/digipost/followers","following_url":"https://api.github.com/users/digipost/following{/other_user}","gists_url":"https://api.github.com/users/digipost/gists{/gist_id}","starred_url":"https://api.github.com/users/digipost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digipost/subscriptions","organizations_url":"https://api.github.com/users/digipost/orgs","repos_url":"https://api.github.com/users/digipost/repos","events_url":"https://api.github.com/users/digipost/events{/privacy}","received_events_url":"https://api.github.com/users/digipost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digipost/ios","description":"Digipost for iOS","fork":false,"url":"https://api.github.com/repos/digipost/ios","forks_url":"https://api.github.com/repos/digipost/ios/forks","keys_url":"https://api.github.com/repos/digipost/ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digipost/ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digipost/ios/teams","hooks_url":"https://api.github.com/repos/digipost/ios/hooks","issue_events_url":"https://api.github.com/repos/digipost/ios/issues/events{/number}","events_url":"https://api.github.com/repos/digipost/ios/events","assignees_url":"https://api.github.com/repos/digipost/ios/assignees{/user}","branches_url":"https://api.github.com/repos/digipost/ios/branches{/branch}","tags_url":"https://api.github.com/repos/digipost/ios/tags","blobs_url":"https://api.github.com/repos/digipost/ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digipost/ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digipost/ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/digipost/ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digipost/ios/statuses/{sha}","languages_url":"https://api.github.com/repos/digipost/ios/languages","stargazers_url":"https://api.github.com/repos/digipost/ios/stargazers","contributors_url":"https://api.github.com/repos/digipost/ios/contributors","subscribers_url":"https://api.github.com/repos/digipost/ios/subscribers","subscription_url":"https://api.github.com/repos/digipost/ios/subscription","commits_url":"https://api.github.com/repos/digipost/ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/digipost/ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/digipost/ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/digipost/ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/digipost/ios/contents/{+path}","compare_url":"https://api.github.com/repos/digipost/ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digipost/ios/merges","archive_url":"https://api.github.com/repos/digipost/ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digipost/ios/downloads","issues_url":"https://api.github.com/repos/digipost/ios/issues{/number}","pulls_url":"https://api.github.com/repos/digipost/ios/pulls{/number}","milestones_url":"https://api.github.com/repos/digipost/ios/milestones{/number}","notifications_url":"https://api.github.com/repos/digipost/ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digipost/ios/labels{/name}","releases_url":"https://api.github.com/repos/digipost/ios/releases{/id}","created_at":"2013-12-06T09:48:19Z","updated_at":"2015-04-30T17:16:29Z","pushed_at":"2015-06-03T12:02:17Z","git_url":"git://github.com/digipost/ios.git","ssh_url":"git@github.com:digipost/ios.git","clone_url":"https://github.com/digipost/ios.git","svn_url":"https://github.com/digipost/ios","homepage":null,"size":211497,"stargazers_count":11,"watchers_count":11,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digipost/ios/pulls/8"},"html":{"href":"https://github.com/digipost/ios/pull/8"},"issue":{"href":"https://api.github.com/repos/digipost/ios/issues/8"},"comments":{"href":"https://api.github.com/repos/digipost/ios/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/digipost/ios/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/digipost/ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digipost/ios/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/digipost/ios/statuses/ce78fc26130bdc0bb497ee28856a2c8771c493d0"}}}}