{"action":"opened","issue":{"url":"https://api.github.com/repos/HeisenCore/heisen/issues/16","repository_url":"https://api.github.com/repos/HeisenCore/heisen","labels_url":"https://api.github.com/repos/HeisenCore/heisen/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/HeisenCore/heisen/issues/16/comments","events_url":"https://api.github.com/repos/HeisenCore/heisen/issues/16/events","html_url":"https://github.com/HeisenCore/heisen/issues/16","id":184618777,"number":16,"title":"Add debugging signals ","user":{"login":"k1-hedayati","id":5066672,"avatar_url":"https://avatars.githubusercontent.com/u/5066672?v=3","gravatar_id":"","url":"https://api.github.com/users/k1-hedayati","html_url":"https://github.com/k1-hedayati","followers_url":"https://api.github.com/users/k1-hedayati/followers","following_url":"https://api.github.com/users/k1-hedayati/following{/other_user}","gists_url":"https://api.github.com/users/k1-hedayati/gists{/gist_id}","starred_url":"https://api.github.com/users/k1-hedayati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k1-hedayati/subscriptions","organizations_url":"https://api.github.com/users/k1-hedayati/orgs","repos_url":"https://api.github.com/users/k1-hedayati/repos","events_url":"https://api.github.com/users/k1-hedayati/events{/privacy}","received_events_url":"https://api.github.com/users/k1-hedayati/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-22T08:52:12Z","updated_at":"2016-10-22T08:52:12Z","closed_at":null,"body":"```python\r\nimport traceback\r\nimport signal\r\nimport heisen.config import settings\r\n\r\n\r\ndef init():\r\n    if settings.DEBUG:\r\n        signal.signal(signal.SIGUSR1, embed)\r\n        signal.signal(signal.SIGUSR2, trace)\r\n        signal.signal(signal.SIGWINCH, print_trace)\r\n\r\n\r\ndef embed(sig, frame):\r\n    from IPython import embed; embed()\r\n\r\n\r\ndef trace(sig, frame):\r\n    import ipdb; ipdb.set_trace()\r\n\r\n\r\ndef print_trace(sig, frame):\r\n    traceback.print_stack()\r\n```"}}
{"actor":{"display_login":"k1-hedayati"}}