{"action":"created","comment":{"url":"https://api.github.com/repos/xeroc/python-graphenelib/pulls/comments/64152017","id":64152017,"diff_hunk":"@@ -179,16 +181,21 @@ def run_forever(self) :\n                     coro = loop.create_connection(self.factory, self.host,\n                                                   self.port, ssl=context)\n                 else :\n+\n                     coro = loop.create_connection(self.factory, self.host,\n                                                   self.port, ssl=self.ssl)\n-\n                 loop.run_until_complete(coro)\n                 loop.run_forever()\n             except KeyboardInterrupt:\n                 break\n \n-            print(\"Trying to re-connect in 10 seconds!\")\n-            time.sleep(10)\n-\n+            try:\n+                print(\"Multiple witnesses configured, trying another witness.\")","path":"grapheneapi/graphenews.py","position":45,"original_position":45,"commit_id":"b0be27149452b4a98665a8eae562e4bf95226fe1","original_commit_id":"b0be27149452b4a98665a8eae562e4bf95226fe1","user":{"login":"xeroc","id":117800,"avatar_url":"https://avatars.githubusercontent.com/u/117800?v=3","gravatar_id":"","url":"https://api.github.com/users/xeroc","html_url":"https://github.com/xeroc","followers_url":"https://api.github.com/users/xeroc/followers","following_url":"https://api.github.com/users/xeroc/following{/other_user}","gists_url":"https://api.github.com/users/xeroc/gists{/gist_id}","starred_url":"https://api.github.com/users/xeroc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xeroc/subscriptions","organizations_url":"https://api.github.com/users/xeroc/orgs","repos_url":"https://api.github.com/users/xeroc/repos","events_url":"https://api.github.com/users/xeroc/events{/privacy}","received_events_url":"https://api.github.com/users/xeroc/received_events","type":"User","site_admin":false},"body":"Please don't use `print` in the library. Instead, we should start using `logging` library wide. The message above would probably fit best into\r\n\r\n    logging.info('...')","created_at":"2016-05-22T16:01:18Z","updated_at":"2016-05-22T16:01:18Z","html_url":"https://github.com/xeroc/python-graphenelib/pull/41#discussion_r64152017","pull_request_url":"https://api.github.com/repos/xeroc/python-graphenelib/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/xeroc/python-graphenelib/pulls/comments/64152017"},"html":{"href":"https://github.com/xeroc/python-graphenelib/pull/41#discussion_r64152017"},"pull_request":{"href":"https://api.github.com/repos/xeroc/python-graphenelib/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/xeroc/python-graphenelib/pulls/41","id":69682787,"html_url":"https://github.com/xeroc/python-graphenelib/pull/41","diff_url":"https://github.com/xeroc/python-graphenelib/pull/41.diff","patch_url":"https://github.com/xeroc/python-graphenelib/pull/41.patch","issue_url":"https://api.github.com/repos/xeroc/python-graphenelib/issues/41","number":41,"state":"open","locked":false,"title":"Added Websocket(RPC) failover","user":{"login":"mauritso1","id":5075001,"avatar_url":"https://avatars.githubusercontent.com/u/5075001?v=3","gravatar_id":"","url":"https://api.github.com/users/mauritso1","html_url":"https://github.com/mauritso1","followers_url":"https://api.github.com/users/mauritso1/followers","following_url":"https://api.github.com/users/mauritso1/following{/other_user}","gists_url":"https://api.github.com/users/mauritso1/gists{/gist_id}","starred_url":"https://api.github.com/users/mauritso1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauritso1/subscriptions","organizations_url":"https://api.github.com/users/mauritso1/orgs","repos_url":"https://api.github.com/users/mauritso1/repos","events_url":"https://api.github.com/users/mauritso1/events{/privacy}","received_events_url":"https://api.github.com/users/mauritso1/received_events","type":"User","site_admin":false},"body":"Added the possibility to provide GrapheneWebsocketRPC() and GrapheneWebsocket(GrapheneWebsocketRPC) with a list of witness urls instead of one.\r\n\r\nAutomatically switches over to the next node in the list when the connection with a full node is lost.","created_at":"2016-05-11T14:34:06Z","updated_at":"2016-05-22T16:01:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df068d980c6f5afebe26a7e37b41672dde618792","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xeroc/python-graphenelib/pulls/41/commits","review_comments_url":"https://api.github.com/repos/xeroc/python-graphenelib/pulls/41/comments","review_comment_url":"https://api.github.com/repos/xeroc/python-graphenelib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xeroc/python-graphenelib/issues/41/comments","statuses_url":"https://api.github.com/repos/xeroc/python-graphenelib/statuses/b0be27149452b4a98665a8eae562e4bf95226fe1","head":{"label":"mauritso1:failover","ref":"failover","sha":"b0be27149452b4a98665a8eae562e4bf95226fe1","user":{"login":"mauritso1","id":5075001,"avatar_url":"https://avatars.githubusercontent.com/u/5075001?v=3","gravatar_id":"","url":"https://api.github.com/users/mauritso1","html_url":"https://github.com/mauritso1","followers_url":"https://api.github.com/users/mauritso1/followers","following_url":"https://api.github.com/users/mauritso1/following{/other_user}","gists_url":"https://api.github.com/users/mauritso1/gists{/gist_id}","starred_url":"https://api.github.com/users/mauritso1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauritso1/subscriptions","organizations_url":"https://api.github.com/users/mauritso1/orgs","repos_url":"https://api.github.com/users/mauritso1/repos","events_url":"https://api.github.com/users/mauritso1/events{/privacy}","received_events_url":"https://api.github.com/users/mauritso1/received_events","type":"User","site_admin":false},"repo":{"id":58153843,"name":"python-graphenelib","full_name":"mauritso1/python-graphenelib","owner":{"login":"mauritso1","id":5075001,"avatar_url":"https://avatars.githubusercontent.com/u/5075001?v=3","gravatar_id":"","url":"https://api.github.com/users/mauritso1","html_url":"https://github.com/mauritso1","followers_url":"https://api.github.com/users/mauritso1/followers","following_url":"https://api.github.com/users/mauritso1/following{/other_user}","gists_url":"https://api.github.com/users/mauritso1/gists{/gist_id}","starred_url":"https://api.github.com/users/mauritso1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauritso1/subscriptions","organizations_url":"https://api.github.com/users/mauritso1/orgs","repos_url":"https://api.github.com/users/mauritso1/repos","events_url":"https://api.github.com/users/mauritso1/events{/privacy}","received_events_url":"https://api.github.com/users/mauritso1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mauritso1/python-graphenelib","description":"","fork":true,"url":"https://api.github.com/repos/mauritso1/python-graphenelib","forks_url":"https://api.github.com/repos/mauritso1/python-graphenelib/forks","keys_url":"https://api.github.com/repos/mauritso1/python-graphenelib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mauritso1/python-graphenelib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mauritso1/python-graphenelib/teams","hooks_url":"https://api.github.com/repos/mauritso1/python-graphenelib/hooks","issue_events_url":"https://api.github.com/repos/mauritso1/python-graphenelib/issues/events{/number}","events_url":"https://api.github.com/repos/mauritso1/python-graphenelib/events","assignees_url":"https://api.github.com/repos/mauritso1/python-graphenelib/assignees{/user}","branches_url":"https://api.github.com/repos/mauritso1/python-graphenelib/branches{/branch}","tags_url":"https://api.github.com/repos/mauritso1/python-graphenelib/tags","blobs_url":"https://api.github.com/repos/mauritso1/python-graphenelib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mauritso1/python-graphenelib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mauritso1/python-graphenelib/git/refs{/sha}","trees_url":"https://api.github.com/repos/mauritso1/python-graphenelib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mauritso1/python-graphenelib/statuses/{sha}","languages_url":"https://api.github.com/repos/mauritso1/python-graphenelib/languages","stargazers_url":"https://api.github.com/repos/mauritso1/python-graphenelib/stargazers","contributors_url":"https://api.github.com/repos/mauritso1/python-graphenelib/contributors","subscribers_url":"https://api.github.com/repos/mauritso1/python-graphenelib/subscribers","subscription_url":"https://api.github.com/repos/mauritso1/python-graphenelib/subscription","commits_url":"https://api.github.com/repos/mauritso1/python-graphenelib/commits{/sha}","git_commits_url":"https://api.github.com/repos/mauritso1/python-graphenelib/git/commits{/sha}","comments_url":"https://api.github.com/repos/mauritso1/python-graphenelib/comments{/number}","issue_comment_url":"https://api.github.com/repos/mauritso1/python-graphenelib/issues/comments{/number}","contents_url":"https://api.github.com/repos/mauritso1/python-graphenelib/contents/{+path}","compare_url":"https://api.github.com/repos/mauritso1/python-graphenelib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mauritso1/python-graphenelib/merges","archive_url":"https://api.github.com/repos/mauritso1/python-graphenelib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mauritso1/python-graphenelib/downloads","issues_url":"https://api.github.com/repos/mauritso1/python-graphenelib/issues{/number}","pulls_url":"https://api.github.com/repos/mauritso1/python-graphenelib/pulls{/number}","milestones_url":"https://api.github.com/repos/mauritso1/python-graphenelib/milestones{/number}","notifications_url":"https://api.github.com/repos/mauritso1/python-graphenelib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mauritso1/python-graphenelib/labels{/name}","releases_url":"https://api.github.com/repos/mauritso1/python-graphenelib/releases{/id}","deployments_url":"https://api.github.com/repos/mauritso1/python-graphenelib/deployments","created_at":"2016-05-05T19:01:34Z","updated_at":"2016-05-05T19:01:35Z","pushed_at":"2016-05-11T14:29:10Z","git_url":"git://github.com/mauritso1/python-graphenelib.git","ssh_url":"git@github.com:mauritso1/python-graphenelib.git","clone_url":"https://github.com/mauritso1/python-graphenelib.git","svn_url":"https://github.com/mauritso1/python-graphenelib","homepage":null,"size":944,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xeroc:develop","ref":"develop","sha":"21daabc3e71bce670f53f0bd6f9c7ea528088091","user":{"login":"xeroc","id":117800,"avatar_url":"https://avatars.githubusercontent.com/u/117800?v=3","gravatar_id":"","url":"https://api.github.com/users/xeroc","html_url":"https://github.com/xeroc","followers_url":"https://api.github.com/users/xeroc/followers","following_url":"https://api.github.com/users/xeroc/following{/other_user}","gists_url":"https://api.github.com/users/xeroc/gists{/gist_id}","starred_url":"https://api.github.com/users/xeroc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xeroc/subscriptions","organizations_url":"https://api.github.com/users/xeroc/orgs","repos_url":"https://api.github.com/users/xeroc/repos","events_url":"https://api.github.com/users/xeroc/events{/privacy}","received_events_url":"https://api.github.com/users/xeroc/received_events","type":"User","site_admin":false},"repo":{"id":39267795,"name":"python-graphenelib","full_name":"xeroc/python-graphenelib","owner":{"login":"xeroc","id":117800,"avatar_url":"https://avatars.githubusercontent.com/u/117800?v=3","gravatar_id":"","url":"https://api.github.com/users/xeroc","html_url":"https://github.com/xeroc","followers_url":"https://api.github.com/users/xeroc/followers","following_url":"https://api.github.com/users/xeroc/following{/other_user}","gists_url":"https://api.github.com/users/xeroc/gists{/gist_id}","starred_url":"https://api.github.com/users/xeroc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xeroc/subscriptions","organizations_url":"https://api.github.com/users/xeroc/orgs","repos_url":"https://api.github.com/users/xeroc/repos","events_url":"https://api.github.com/users/xeroc/events{/privacy}","received_events_url":"https://api.github.com/users/xeroc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xeroc/python-graphenelib","description":"","fork":false,"url":"https://api.github.com/repos/xeroc/python-graphenelib","forks_url":"https://api.github.com/repos/xeroc/python-graphenelib/forks","keys_url":"https://api.github.com/repos/xeroc/python-graphenelib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xeroc/python-graphenelib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xeroc/python-graphenelib/teams","hooks_url":"https://api.github.com/repos/xeroc/python-graphenelib/hooks","issue_events_url":"https://api.github.com/repos/xeroc/python-graphenelib/issues/events{/number}","events_url":"https://api.github.com/repos/xeroc/python-graphenelib/events","assignees_url":"https://api.github.com/repos/xeroc/python-graphenelib/assignees{/user}","branches_url":"https://api.github.com/repos/xeroc/python-graphenelib/branches{/branch}","tags_url":"https://api.github.com/repos/xeroc/python-graphenelib/tags","blobs_url":"https://api.github.com/repos/xeroc/python-graphenelib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xeroc/python-graphenelib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xeroc/python-graphenelib/git/refs{/sha}","trees_url":"https://api.github.com/repos/xeroc/python-graphenelib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xeroc/python-graphenelib/statuses/{sha}","languages_url":"https://api.github.com/repos/xeroc/python-graphenelib/languages","stargazers_url":"https://api.github.com/repos/xeroc/python-graphenelib/stargazers","contributors_url":"https://api.github.com/repos/xeroc/python-graphenelib/contributors","subscribers_url":"https://api.github.com/repos/xeroc/python-graphenelib/subscribers","subscription_url":"https://api.github.com/repos/xeroc/python-graphenelib/subscription","commits_url":"https://api.github.com/repos/xeroc/python-graphenelib/commits{/sha}","git_commits_url":"https://api.github.com/repos/xeroc/python-graphenelib/git/commits{/sha}","comments_url":"https://api.github.com/repos/xeroc/python-graphenelib/comments{/number}","issue_comment_url":"https://api.github.com/repos/xeroc/python-graphenelib/issues/comments{/number}","contents_url":"https://api.github.com/repos/xeroc/python-graphenelib/contents/{+path}","compare_url":"https://api.github.com/repos/xeroc/python-graphenelib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xeroc/python-graphenelib/merges","archive_url":"https://api.github.com/repos/xeroc/python-graphenelib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xeroc/python-graphenelib/downloads","issues_url":"https://api.github.com/repos/xeroc/python-graphenelib/issues{/number}","pulls_url":"https://api.github.com/repos/xeroc/python-graphenelib/pulls{/number}","milestones_url":"https://api.github.com/repos/xeroc/python-graphenelib/milestones{/number}","notifications_url":"https://api.github.com/repos/xeroc/python-graphenelib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xeroc/python-graphenelib/labels{/name}","releases_url":"https://api.github.com/repos/xeroc/python-graphenelib/releases{/id}","deployments_url":"https://api.github.com/repos/xeroc/python-graphenelib/deployments","created_at":"2015-07-17T17:59:05Z","updated_at":"2016-05-14T14:58:30Z","pushed_at":"2016-05-20T09:07:39Z","git_url":"git://github.com/xeroc/python-graphenelib.git","ssh_url":"git@github.com:xeroc/python-graphenelib.git","clone_url":"https://github.com/xeroc/python-graphenelib.git","svn_url":"https://github.com/xeroc/python-graphenelib","homepage":null,"size":986,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":5,"forks":16,"open_issues":5,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xeroc/python-graphenelib/pulls/41"},"html":{"href":"https://github.com/xeroc/python-graphenelib/pull/41"},"issue":{"href":"https://api.github.com/repos/xeroc/python-graphenelib/issues/41"},"comments":{"href":"https://api.github.com/repos/xeroc/python-graphenelib/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/xeroc/python-graphenelib/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/xeroc/python-graphenelib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xeroc/python-graphenelib/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/xeroc/python-graphenelib/statuses/b0be27149452b4a98665a8eae562e4bf95226fe1"}}}}
{"actor":{"display_login":"xeroc"}}