{"action":"created","issue":{"url":"https://api.github.com/repos/greenplum-db/plcontainer/issues/387","repository_url":"https://api.github.com/repos/greenplum-db/plcontainer","labels_url":"https://api.github.com/repos/greenplum-db/plcontainer/issues/387/labels{/name}","comments_url":"https://api.github.com/repos/greenplum-db/plcontainer/issues/387/comments","events_url":"https://api.github.com/repos/greenplum-db/plcontainer/issues/387/events","html_url":"https://github.com/greenplum-db/plcontainer/issues/387","id":328433236,"node_id":"MDU6SXNzdWUzMjg0MzMyMzY=","number":387,"title":"LOST CONTEXT in log functions and LOST TRACEBACK when error","user":{"login":"BaiShaoqi","id":5915448,"node_id":"MDQ6VXNlcjU5MTU0NDg=","avatar_url":"https://avatars0.githubusercontent.com/u/5915448?v=4","gravatar_id":"","url":"https://api.github.com/users/BaiShaoqi","html_url":"https://github.com/BaiShaoqi","followers_url":"https://api.github.com/users/BaiShaoqi/followers","following_url":"https://api.github.com/users/BaiShaoqi/following{/other_user}","gists_url":"https://api.github.com/users/BaiShaoqi/gists{/gist_id}","starred_url":"https://api.github.com/users/BaiShaoqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaiShaoqi/subscriptions","organizations_url":"https://api.github.com/users/BaiShaoqi/orgs","repos_url":"https://api.github.com/users/BaiShaoqi/repos","events_url":"https://api.github.com/users/BaiShaoqi/events{/privacy}","received_events_url":"https://api.github.com/users/BaiShaoqi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-01T08:50:03Z","updated_at":"2018-06-01T08:50:04Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Expected behavior\r\n\r\n> INFO:  info\r\n> CONTEXT:  PL/Python function \"elog_test_basic\"\r\n> INFO:  37\r\n> CONTEXT:  PL/Python function \"elog_test_basic\"\r\n> INFO:  ()\r\n> CONTEXT:  PL/Python function \"elog_test_basic\"\r\n> INFO:  ('info', 37, [1, 2, 3])\r\n> CONTEXT:  PL/Python function \"elog_test_basic\"\r\n> NOTICE:  notice\r\n> CONTEXT:  PL/Python function \"elog_test_basic\"\r\n> WARNING:  warning\r\n> CONTEXT:  PL/Python function \"elog_test_basic\"\r\n> ERROR:  plpy.Error: error (plpython.c:4960)\r\n> CONTEXT:  Traceback (most recent call last):\r\n>   PL/Python function \"elog_test_basic\", line 10, in <module>\r\n>     plpy.error('error')\r\n> PL/Python function \"elog_test_basic\"\r\n\r\n### Actual behavior\r\n\r\n> INFO:  info\r\n> INFO:  37\r\n> INFO:  ()\r\n> INFO:  ('info', 37, [1, 2, 3])\r\n> NOTICE:  notice\r\n> WARNING:  warning\r\n> \r\n> ERROR:  error\r\n\r\n### Step to reproduce the behavior\r\n```\r\nCREATE FUNCTION elog_test_basic() RETURNS void\r\nAS $$\r\n# container: plc_python_shared\r\nplpy.debug('debug')\r\nplpy.log('log')\r\nplpy.info('info')\r\nplpy.info(37)\r\nplpy.info()\r\nplpy.info('info', 37, [1, 2, 3])\r\nplpy.notice('notice')\r\nplpy.warning('warning')\r\nplpy.error('error')\r\n$$ LANGUAGE plcontainer;\r\n\r\nSELECT elog_test_basic();\r\n```"},"comment":{"url":"https://api.github.com/repos/greenplum-db/plcontainer/issues/comments/393814884","html_url":"https://github.com/greenplum-db/plcontainer/issues/387#issuecomment-393814884","issue_url":"https://api.github.com/repos/greenplum-db/plcontainer/issues/387","id":393814884,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzgxNDg4NA==","user":{"login":"cf-gitbot","id":5589368,"node_id":"MDQ6VXNlcjU1ODkzNjg=","avatar_url":"https://avatars3.githubusercontent.com/u/5589368?v=4","gravatar_id":"","url":"https://api.github.com/users/cf-gitbot","html_url":"https://github.com/cf-gitbot","followers_url":"https://api.github.com/users/cf-gitbot/followers","following_url":"https://api.github.com/users/cf-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/cf-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-gitbot/subscriptions","organizations_url":"https://api.github.com/users/cf-gitbot/orgs","repos_url":"https://api.github.com/users/cf-gitbot/repos","events_url":"https://api.github.com/users/cf-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-gitbot/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T08:50:04Z","updated_at":"2018-06-01T08:50:04Z","author_association":"NONE","body":"We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the [story](https://www.pivotaltracker.com/story/show/158025544). \n\nThe labels on this github issue will be updated when the story is started."}}
{"actor":{"display_login":"cf-gitbot"}}