{"action":"created","comment":{"url":"https://api.github.com/repos/Tendrl/commons/pulls/comments/115669683","pull_request_review_id":37226905,"id":115669683,"diff_hunk":"@@ -0,0 +1,41 @@\n+\"\"\"Handles logging functionality.\"\"\"\n+\n+import sys\n+from tendrl.commons.event import Event\n+from tendrl.commons.message import Message\n+from inspect import getframeinfo\n+from inspect import stack\n+\n+def log(log_priority, publisher_id, log_payload, job_id=None,\n+        flow_id=None, parent_id=None, cluster_id=None,\n+        message_id=None, timestamp=None, node_id=None,\n+        caller=None, *args, **kwargs):","path":"tendrl/commons/utils/log_utils.py","position":null,"original_position":12,"commit_id":"ee15e7bbbe2b3bf58ff6772431e8a42da412702e","original_commit_id":"c230cd8ec64390af84120e1a71364085fd7069d8","user":{"login":"GowthamShanmugam","id":15073590,"avatar_url":"https://avatars3.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":"no here caller is not required\r\nremove caller, node_id, timestamp, message_id and args, kwargs","created_at":"2017-05-10T07:20:01Z","updated_at":"2017-05-10T07:20:01Z","html_url":"https://github.com/Tendrl/commons/pull/437#discussion_r115669683","pull_request_url":"https://api.github.com/repos/Tendrl/commons/pulls/437","_links":{"self":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/comments/115669683"},"html":{"href":"https://github.com/Tendrl/commons/pull/437#discussion_r115669683"},"pull_request":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/437"}}},"pull_request":{"url":"https://api.github.com/repos/Tendrl/commons/pulls/437","id":119131264,"html_url":"https://github.com/Tendrl/commons/pull/437","diff_url":"https://github.com/Tendrl/commons/pull/437.diff","patch_url":"https://github.com/Tendrl/commons/pull/437.patch","issue_url":"https://api.github.com/repos/Tendrl/commons/issues/437","number":437,"state":"open","locked":false,"title":"Utility function to log errors/info etc","user":{"login":"rishubhjain","id":2301827,"avatar_url":"https://avatars0.githubusercontent.com/u/2301827?v=3","gravatar_id":"","url":"https://api.github.com/users/rishubhjain","html_url":"https://github.com/rishubhjain","followers_url":"https://api.github.com/users/rishubhjain/followers","following_url":"https://api.github.com/users/rishubhjain/following{/other_user}","gists_url":"https://api.github.com/users/rishubhjain/gists{/gist_id}","starred_url":"https://api.github.com/users/rishubhjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rishubhjain/subscriptions","organizations_url":"https://api.github.com/users/rishubhjain/orgs","repos_url":"https://api.github.com/users/rishubhjain/repos","events_url":"https://api.github.com/users/rishubhjain/events{/privacy}","received_events_url":"https://api.github.com/users/rishubhjain/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-05T08:44:28Z","updated_at":"2017-05-10T07:20:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25f2b2cd15611b76e12bdae3cfbabac188532c2d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tendrl/commons/pulls/437/commits","review_comments_url":"https://api.github.com/repos/Tendrl/commons/pulls/437/comments","review_comment_url":"https://api.github.com/repos/Tendrl/commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tendrl/commons/issues/437/comments","statuses_url":"https://api.github.com/repos/Tendrl/commons/statuses/ee15e7bbbe2b3bf58ff6772431e8a42da412702e","head":{"label":"rishubhjain:logging","ref":"logging","sha":"ee15e7bbbe2b3bf58ff6772431e8a42da412702e","user":{"login":"rishubhjain","id":2301827,"avatar_url":"https://avatars0.githubusercontent.com/u/2301827?v=3","gravatar_id":"","url":"https://api.github.com/users/rishubhjain","html_url":"https://github.com/rishubhjain","followers_url":"https://api.github.com/users/rishubhjain/followers","following_url":"https://api.github.com/users/rishubhjain/following{/other_user}","gists_url":"https://api.github.com/users/rishubhjain/gists{/gist_id}","starred_url":"https://api.github.com/users/rishubhjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rishubhjain/subscriptions","organizations_url":"https://api.github.com/users/rishubhjain/orgs","repos_url":"https://api.github.com/users/rishubhjain/repos","events_url":"https://api.github.com/users/rishubhjain/events{/privacy}","received_events_url":"https://api.github.com/users/rishubhjain/received_events","type":"User","site_admin":false},"repo":{"id":90022810,"name":"commons","full_name":"rishubhjain/commons","owner":{"login":"rishubhjain","id":2301827,"avatar_url":"https://avatars0.githubusercontent.com/u/2301827?v=3","gravatar_id":"","url":"https://api.github.com/users/rishubhjain","html_url":"https://github.com/rishubhjain","followers_url":"https://api.github.com/users/rishubhjain/followers","following_url":"https://api.github.com/users/rishubhjain/following{/other_user}","gists_url":"https://api.github.com/users/rishubhjain/gists{/gist_id}","starred_url":"https://api.github.com/users/rishubhjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rishubhjain/subscriptions","organizations_url":"https://api.github.com/users/rishubhjain/orgs","repos_url":"https://api.github.com/users/rishubhjain/repos","events_url":"https://api.github.com/users/rishubhjain/events{/privacy}","received_events_url":"https://api.github.com/users/rishubhjain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rishubhjain/commons","description":"Common code usable by all Tendrl components","fork":true,"url":"https://api.github.com/repos/rishubhjain/commons","forks_url":"https://api.github.com/repos/rishubhjain/commons/forks","keys_url":"https://api.github.com/repos/rishubhjain/commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rishubhjain/commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rishubhjain/commons/teams","hooks_url":"https://api.github.com/repos/rishubhjain/commons/hooks","issue_events_url":"https://api.github.com/repos/rishubhjain/commons/issues/events{/number}","events_url":"https://api.github.com/repos/rishubhjain/commons/events","assignees_url":"https://api.github.com/repos/rishubhjain/commons/assignees{/user}","branches_url":"https://api.github.com/repos/rishubhjain/commons/branches{/branch}","tags_url":"https://api.github.com/repos/rishubhjain/commons/tags","blobs_url":"https://api.github.com/repos/rishubhjain/commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rishubhjain/commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rishubhjain/commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/rishubhjain/commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rishubhjain/commons/statuses/{sha}","languages_url":"https://api.github.com/repos/rishubhjain/commons/languages","stargazers_url":"https://api.github.com/repos/rishubhjain/commons/stargazers","contributors_url":"https://api.github.com/repos/rishubhjain/commons/contributors","subscribers_url":"https://api.github.com/repos/rishubhjain/commons/subscribers","subscription_url":"https://api.github.com/repos/rishubhjain/commons/subscription","commits_url":"https://api.github.com/repos/rishubhjain/commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/rishubhjain/commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/rishubhjain/commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/rishubhjain/commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/rishubhjain/commons/contents/{+path}","compare_url":"https://api.github.com/repos/rishubhjain/commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rishubhjain/commons/merges","archive_url":"https://api.github.com/repos/rishubhjain/commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rishubhjain/commons/downloads","issues_url":"https://api.github.com/repos/rishubhjain/commons/issues{/number}","pulls_url":"https://api.github.com/repos/rishubhjain/commons/pulls{/number}","milestones_url":"https://api.github.com/repos/rishubhjain/commons/milestones{/number}","notifications_url":"https://api.github.com/repos/rishubhjain/commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rishubhjain/commons/labels{/name}","releases_url":"https://api.github.com/repos/rishubhjain/commons/releases{/id}","deployments_url":"https://api.github.com/repos/rishubhjain/commons/deployments","created_at":"2017-05-02T10:54:41Z","updated_at":"2017-05-02T10:54:43Z","pushed_at":"2017-05-10T06:21:42Z","git_url":"git://github.com/rishubhjain/commons.git","ssh_url":"git@github.com:rishubhjain/commons.git","clone_url":"https://github.com/rishubhjain/commons.git","svn_url":"https://github.com/rishubhjain/commons","homepage":"http://www.tendrl.org","size":725,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"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":"develop"}},"base":{"label":"Tendrl:develop","ref":"develop","sha":"c891deb969e61880acb56b1528361c320af0e770","user":{"login":"Tendrl","id":19151627,"avatar_url":"https://avatars3.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://avatars3.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-03-16T14:33:34Z","pushed_at":"2017-05-10T06:21:43Z","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":731,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":9,"forks":18,"open_issues":9,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/437"},"html":{"href":"https://github.com/Tendrl/commons/pull/437"},"issue":{"href":"https://api.github.com/repos/Tendrl/commons/issues/437"},"comments":{"href":"https://api.github.com/repos/Tendrl/commons/issues/437/comments"},"review_comments":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/437/comments"},"review_comment":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/437/commits"},"statuses":{"href":"https://api.github.com/repos/Tendrl/commons/statuses/ee15e7bbbe2b3bf58ff6772431e8a42da412702e"}}}}
{"actor":{"display_login":"GowthamShanmugam"}}