{"action":"created","issue":{"url":"https://api.github.com/repos/AndelaOSP/wirebot/issues/28","repository_url":"https://api.github.com/repos/AndelaOSP/wirebot","labels_url":"https://api.github.com/repos/AndelaOSP/wirebot/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/AndelaOSP/wirebot/issues/28/comments","events_url":"https://api.github.com/repos/AndelaOSP/wirebot/issues/28/events","html_url":"https://github.com/AndelaOSP/wirebot/pull/28","id":317723586,"number":28,"title":"#157088088 Post Errors To Slack","user":{"login":"bmuthoga","id":6702127,"avatar_url":"https://avatars3.githubusercontent.com/u/6702127?v=4","gravatar_id":"","url":"https://api.github.com/users/bmuthoga","html_url":"https://github.com/bmuthoga","followers_url":"https://api.github.com/users/bmuthoga/followers","following_url":"https://api.github.com/users/bmuthoga/following{/other_user}","gists_url":"https://api.github.com/users/bmuthoga/gists{/gist_id}","starred_url":"https://api.github.com/users/bmuthoga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmuthoga/subscriptions","organizations_url":"https://api.github.com/users/bmuthoga/orgs","repos_url":"https://api.github.com/users/bmuthoga/repos","events_url":"https://api.github.com/users/bmuthoga/events{/privacy}","received_events_url":"https://api.github.com/users/bmuthoga/received_events","type":"User","site_admin":false},"labels":[{"id":913891629,"url":"https://api.github.com/repos/AndelaOSP/wirebot/labels/pending%20response","name":"pending response","color":"8f6ac4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-25T17:30:16Z","updated_at":"2018-04-25T18:01:07Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/AndelaOSP/wirebot/pulls/28","html_url":"https://github.com/AndelaOSP/wirebot/pull/28","diff_url":"https://github.com/AndelaOSP/wirebot/pull/28.diff","patch_url":"https://github.com/AndelaOSP/wirebot/pull/28.patch"},"body":"#### What does this PR do?\r\nThis PR posts error logs to a predefined Slack monitoring channel\r\n\r\n#### Description of Task to be completed?\r\n- When an error occurs, the error log is posted to a predefined Slack channel to aid in debugging\r\n\r\n#### Any background context you want to add?\r\nThis will aid contributing devs in debugging errors that occur when the bot is in use\r\n\r\n#### Screenshots\r\n<Pending>\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n[#157088088](https://www.pivotaltracker.com/n/projects/2117172/stories/157088088)\r\n"},"comment":{"url":"https://api.github.com/repos/AndelaOSP/wirebot/issues/comments/384379110","html_url":"https://github.com/AndelaOSP/wirebot/pull/28#issuecomment-384379110","issue_url":"https://api.github.com/repos/AndelaOSP/wirebot/issues/28","id":384379110,"user":{"login":"danielwangai","id":5638955,"avatar_url":"https://avatars2.githubusercontent.com/u/5638955?v=4","gravatar_id":"","url":"https://api.github.com/users/danielwangai","html_url":"https://github.com/danielwangai","followers_url":"https://api.github.com/users/danielwangai/followers","following_url":"https://api.github.com/users/danielwangai/following{/other_user}","gists_url":"https://api.github.com/users/danielwangai/gists{/gist_id}","starred_url":"https://api.github.com/users/danielwangai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielwangai/subscriptions","organizations_url":"https://api.github.com/users/danielwangai/orgs","repos_url":"https://api.github.com/users/danielwangai/repos","events_url":"https://api.github.com/users/danielwangai/events{/privacy}","received_events_url":"https://api.github.com/users/danielwangai/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T18:01:07Z","updated_at":"2018-04-25T18:01:07Z","author_association":"NONE","body":"@bmuthoga the datatype of the error you're logging is a string. It needs to be an object so that the stack trace is displayed as seen on the #monitor slack channel."}}
{"actor":{"display_login":"danielwangai"}}