{"action":"created","comment":{"url":"https://api.github.com/repos/Tendrl/commons/pulls/comments/100966182","pull_request_review_id":21682763,"id":100966182,"diff_hunk":"@@ -0,0 +1,25 @@\n+from gevent import socket\n+from gevent.socket import error as socket_error\n+from gevent.socket import timeout as socket_timeout\n+from tendrl.commons.message import Message\n+\n+\n+class EventFailed(Exception):\n+    pass\n+\n+\n+class Event(object):\n+    def __init__(self, message):\n+        self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)\n+        self._write(message)\n+\n+    def _write(self, message):\n+        try:\n+            socket_path = tendrl_ns.config.data['logging_socket_path']\n+            self.sock.connect(socket_path)\n+            json_str = Message.to_json(message)\n+            self.sock.send(json_str)\n+            self.sock.close()","path":"tendrl/commons/event.py","position":22,"original_position":22,"commit_id":"11334b02a96ae49364b6bad6f8a7954633cb9d95","original_commit_id":"cc859b68deb0719baec62c95afc31943c35367b6","user":{"login":"GowthamShanmugam","id":15073590,"avatar_url":"https://avatars.githubusercontent.com/u/15073590?v=3","gravatar_id":"","url":"https://api.github.com/users/GowthamShanmugam","html_url":"https://github.com/GowthamShanmugam","followers_url":"https://api.github.com/users/GowthamShanmugam/followers","following_url":"https://api.github.com/users/GowthamShanmugam/following{/other_user}","gists_url":"https://api.github.com/users/GowthamShanmugam/gists{/gist_id}","starred_url":"https://api.github.com/users/GowthamShanmugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GowthamShanmugam/subscriptions","organizations_url":"https://api.github.com/users/GowthamShanmugam/orgs","repos_url":"https://api.github.com/users/GowthamShanmugam/repos","events_url":"https://api.github.com/users/GowthamShanmugam/events{/privacy}","received_events_url":"https://api.github.com/users/GowthamShanmugam/received_events","type":"User","site_admin":false},"body":"@nthomas-redhat i wil change it","created_at":"2017-02-14T06:14:47Z","updated_at":"2017-02-14T06:14:47Z","html_url":"https://github.com/Tendrl/commons/pull/156#discussion_r100966182","pull_request_url":"https://api.github.com/repos/Tendrl/commons/pulls/156","_links":{"self":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/comments/100966182"},"html":{"href":"https://github.com/Tendrl/commons/pull/156#discussion_r100966182"},"pull_request":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/156"}}},"pull_request":{"url":"https://api.github.com/repos/Tendrl/commons/pulls/156","id":105164059,"html_url":"https://github.com/Tendrl/commons/pull/156","diff_url":"https://github.com/Tendrl/commons/pull/156.diff","patch_url":"https://github.com/Tendrl/commons/pull/156.patch","issue_url":"https://api.github.com/repos/Tendrl/commons/issues/156","number":156,"state":"open","locked":false,"title":"Logging implementation for tendrl","user":{"login":"GowthamShanmugam","id":15073590,"avatar_url":"https://avatars.githubusercontent.com/u/15073590?v=3","gravatar_id":"","url":"https://api.github.com/users/GowthamShanmugam","html_url":"https://github.com/GowthamShanmugam","followers_url":"https://api.github.com/users/GowthamShanmugam/followers","following_url":"https://api.github.com/users/GowthamShanmugam/following{/other_user}","gists_url":"https://api.github.com/users/GowthamShanmugam/gists{/gist_id}","starred_url":"https://api.github.com/users/GowthamShanmugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GowthamShanmugam/subscriptions","organizations_url":"https://api.github.com/users/GowthamShanmugam/orgs","repos_url":"https://api.github.com/users/GowthamShanmugam/repos","events_url":"https://api.github.com/users/GowthamShanmugam/events{/privacy}","received_events_url":"https://api.github.com/users/GowthamShanmugam/received_events","type":"User","site_admin":false},"body":"tendrl-bug-id: Tendrl/specifications#28\r\ntendrl-spec: logging_implementation\r\n\r\nSigned-off-by: root <root@dhcp42-75.lab.eng.blr.redhat.com>","created_at":"2017-02-08T07:43:34Z","updated_at":"2017-02-14T06:14:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4eafe4c2fbb3d6bf1c32f602f61e7b1e6083bd6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tendrl/commons/pulls/156/commits","review_comments_url":"https://api.github.com/repos/Tendrl/commons/pulls/156/comments","review_comment_url":"https://api.github.com/repos/Tendrl/commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tendrl/commons/issues/156/comments","statuses_url":"https://api.github.com/repos/Tendrl/commons/statuses/11334b02a96ae49364b6bad6f8a7954633cb9d95","head":{"label":"GowthamShanmugam:logging","ref":"logging","sha":"11334b02a96ae49364b6bad6f8a7954633cb9d95","user":{"login":"GowthamShanmugam","id":15073590,"avatar_url":"https://avatars.githubusercontent.com/u/15073590?v=3","gravatar_id":"","url":"https://api.github.com/users/GowthamShanmugam","html_url":"https://github.com/GowthamShanmugam","followers_url":"https://api.github.com/users/GowthamShanmugam/followers","following_url":"https://api.github.com/users/GowthamShanmugam/following{/other_user}","gists_url":"https://api.github.com/users/GowthamShanmugam/gists{/gist_id}","starred_url":"https://api.github.com/users/GowthamShanmugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GowthamShanmugam/subscriptions","organizations_url":"https://api.github.com/users/GowthamShanmugam/orgs","repos_url":"https://api.github.com/users/GowthamShanmugam/repos","events_url":"https://api.github.com/users/GowthamShanmugam/events{/privacy}","received_events_url":"https://api.github.com/users/GowthamShanmugam/received_events","type":"User","site_admin":false},"repo":{"id":79903023,"name":"commons","full_name":"GowthamShanmugam/commons","owner":{"login":"GowthamShanmugam","id":15073590,"avatar_url":"https://avatars.githubusercontent.com/u/15073590?v=3","gravatar_id":"","url":"https://api.github.com/users/GowthamShanmugam","html_url":"https://github.com/GowthamShanmugam","followers_url":"https://api.github.com/users/GowthamShanmugam/followers","following_url":"https://api.github.com/users/GowthamShanmugam/following{/other_user}","gists_url":"https://api.github.com/users/GowthamShanmugam/gists{/gist_id}","starred_url":"https://api.github.com/users/GowthamShanmugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GowthamShanmugam/subscriptions","organizations_url":"https://api.github.com/users/GowthamShanmugam/orgs","repos_url":"https://api.github.com/users/GowthamShanmugam/repos","events_url":"https://api.github.com/users/GowthamShanmugam/events{/privacy}","received_events_url":"https://api.github.com/users/GowthamShanmugam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GowthamShanmugam/commons","description":"Common code usable by all Tendrl components","fork":true,"url":"https://api.github.com/repos/GowthamShanmugam/commons","forks_url":"https://api.github.com/repos/GowthamShanmugam/commons/forks","keys_url":"https://api.github.com/repos/GowthamShanmugam/commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GowthamShanmugam/commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GowthamShanmugam/commons/teams","hooks_url":"https://api.github.com/repos/GowthamShanmugam/commons/hooks","issue_events_url":"https://api.github.com/repos/GowthamShanmugam/commons/issues/events{/number}","events_url":"https://api.github.com/repos/GowthamShanmugam/commons/events","assignees_url":"https://api.github.com/repos/GowthamShanmugam/commons/assignees{/user}","branches_url":"https://api.github.com/repos/GowthamShanmugam/commons/branches{/branch}","tags_url":"https://api.github.com/repos/GowthamShanmugam/commons/tags","blobs_url":"https://api.github.com/repos/GowthamShanmugam/commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GowthamShanmugam/commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GowthamShanmugam/commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/GowthamShanmugam/commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GowthamShanmugam/commons/statuses/{sha}","languages_url":"https://api.github.com/repos/GowthamShanmugam/commons/languages","stargazers_url":"https://api.github.com/repos/GowthamShanmugam/commons/stargazers","contributors_url":"https://api.github.com/repos/GowthamShanmugam/commons/contributors","subscribers_url":"https://api.github.com/repos/GowthamShanmugam/commons/subscribers","subscription_url":"https://api.github.com/repos/GowthamShanmugam/commons/subscription","commits_url":"https://api.github.com/repos/GowthamShanmugam/commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/GowthamShanmugam/commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/GowthamShanmugam/commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/GowthamShanmugam/commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/GowthamShanmugam/commons/contents/{+path}","compare_url":"https://api.github.com/repos/GowthamShanmugam/commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GowthamShanmugam/commons/merges","archive_url":"https://api.github.com/repos/GowthamShanmugam/commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GowthamShanmugam/commons/downloads","issues_url":"https://api.github.com/repos/GowthamShanmugam/commons/issues{/number}","pulls_url":"https://api.github.com/repos/GowthamShanmugam/commons/pulls{/number}","milestones_url":"https://api.github.com/repos/GowthamShanmugam/commons/milestones{/number}","notifications_url":"https://api.github.com/repos/GowthamShanmugam/commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GowthamShanmugam/commons/labels{/name}","releases_url":"https://api.github.com/repos/GowthamShanmugam/commons/releases{/id}","deployments_url":"https://api.github.com/repos/GowthamShanmugam/commons/deployments","created_at":"2017-01-24T10:53:06Z","updated_at":"2017-01-24T10:53:08Z","pushed_at":"2017-02-14T06:06:29Z","git_url":"git://github.com/GowthamShanmugam/commons.git","ssh_url":"git@github.com:GowthamShanmugam/commons.git","clone_url":"https://github.com/GowthamShanmugam/commons.git","svn_url":"https://github.com/GowthamShanmugam/commons","homepage":"http://www.tendrl.org","size":339,"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":"Tendrl:develop","ref":"develop","sha":"1c7742ee797a3086ac8978caa90e95e874251d3d","user":{"login":"Tendrl","id":19151627,"avatar_url":"https://avatars.githubusercontent.com/u/19151627?v=3","gravatar_id":"","url":"https://api.github.com/users/Tendrl","html_url":"https://github.com/Tendrl","followers_url":"https://api.github.com/users/Tendrl/followers","following_url":"https://api.github.com/users/Tendrl/following{/other_user}","gists_url":"https://api.github.com/users/Tendrl/gists{/gist_id}","starred_url":"https://api.github.com/users/Tendrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tendrl/subscriptions","organizations_url":"https://api.github.com/users/Tendrl/orgs","repos_url":"https://api.github.com/users/Tendrl/repos","events_url":"https://api.github.com/users/Tendrl/events{/privacy}","received_events_url":"https://api.github.com/users/Tendrl/received_events","type":"Organization","site_admin":false},"repo":{"id":64727947,"name":"commons","full_name":"Tendrl/commons","owner":{"login":"Tendrl","id":19151627,"avatar_url":"https://avatars.githubusercontent.com/u/19151627?v=3","gravatar_id":"","url":"https://api.github.com/users/Tendrl","html_url":"https://github.com/Tendrl","followers_url":"https://api.github.com/users/Tendrl/followers","following_url":"https://api.github.com/users/Tendrl/following{/other_user}","gists_url":"https://api.github.com/users/Tendrl/gists{/gist_id}","starred_url":"https://api.github.com/users/Tendrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tendrl/subscriptions","organizations_url":"https://api.github.com/users/Tendrl/orgs","repos_url":"https://api.github.com/users/Tendrl/repos","events_url":"https://api.github.com/users/Tendrl/events{/privacy}","received_events_url":"https://api.github.com/users/Tendrl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tendrl/commons","description":"Common code usable by all Tendrl components","fork":false,"url":"https://api.github.com/repos/Tendrl/commons","forks_url":"https://api.github.com/repos/Tendrl/commons/forks","keys_url":"https://api.github.com/repos/Tendrl/commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tendrl/commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tendrl/commons/teams","hooks_url":"https://api.github.com/repos/Tendrl/commons/hooks","issue_events_url":"https://api.github.com/repos/Tendrl/commons/issues/events{/number}","events_url":"https://api.github.com/repos/Tendrl/commons/events","assignees_url":"https://api.github.com/repos/Tendrl/commons/assignees{/user}","branches_url":"https://api.github.com/repos/Tendrl/commons/branches{/branch}","tags_url":"https://api.github.com/repos/Tendrl/commons/tags","blobs_url":"https://api.github.com/repos/Tendrl/commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tendrl/commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tendrl/commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tendrl/commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tendrl/commons/statuses/{sha}","languages_url":"https://api.github.com/repos/Tendrl/commons/languages","stargazers_url":"https://api.github.com/repos/Tendrl/commons/stargazers","contributors_url":"https://api.github.com/repos/Tendrl/commons/contributors","subscribers_url":"https://api.github.com/repos/Tendrl/commons/subscribers","subscription_url":"https://api.github.com/repos/Tendrl/commons/subscription","commits_url":"https://api.github.com/repos/Tendrl/commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tendrl/commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tendrl/commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tendrl/commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tendrl/commons/contents/{+path}","compare_url":"https://api.github.com/repos/Tendrl/commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tendrl/commons/merges","archive_url":"https://api.github.com/repos/Tendrl/commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tendrl/commons/downloads","issues_url":"https://api.github.com/repos/Tendrl/commons/issues{/number}","pulls_url":"https://api.github.com/repos/Tendrl/commons/pulls{/number}","milestones_url":"https://api.github.com/repos/Tendrl/commons/milestones{/number}","notifications_url":"https://api.github.com/repos/Tendrl/commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tendrl/commons/labels{/name}","releases_url":"https://api.github.com/repos/Tendrl/commons/releases{/id}","deployments_url":"https://api.github.com/repos/Tendrl/commons/deployments","created_at":"2016-08-02T05:49:44Z","updated_at":"2017-01-29T14:17:58Z","pushed_at":"2017-02-14T06:06:31Z","git_url":"git://github.com/Tendrl/commons.git","ssh_url":"git@github.com:Tendrl/commons.git","clone_url":"https://github.com/Tendrl/commons.git","svn_url":"https://github.com/Tendrl/commons","homepage":"http://www.tendrl.org","size":336,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":21,"forks":15,"open_issues":21,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/156"},"html":{"href":"https://github.com/Tendrl/commons/pull/156"},"issue":{"href":"https://api.github.com/repos/Tendrl/commons/issues/156"},"comments":{"href":"https://api.github.com/repos/Tendrl/commons/issues/156/comments"},"review_comments":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/156/comments"},"review_comment":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/156/commits"},"statuses":{"href":"https://api.github.com/repos/Tendrl/commons/statuses/11334b02a96ae49364b6bad6f8a7954633cb9d95"}}}}
{"actor":{"display_login":"GowthamShanmugam"}}