{"action":"created","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-filter-ruby/issues/28","repository_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-ruby","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-ruby/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-ruby/issues/28/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-ruby/issues/28/events","html_url":"https://github.com/logstash-plugins/logstash-filter-ruby/pull/28","id":181664947,"number":28,"title":"#fix: increase exception handling verbosity","user":{"login":"bananabr","id":9096933,"avatar_url":"https://avatars.githubusercontent.com/u/9096933?v=3","gravatar_id":"","url":"https://api.github.com/users/bananabr","html_url":"https://github.com/bananabr","followers_url":"https://api.github.com/users/bananabr/followers","following_url":"https://api.github.com/users/bananabr/following{/other_user}","gists_url":"https://api.github.com/users/bananabr/gists{/gist_id}","starred_url":"https://api.github.com/users/bananabr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bananabr/subscriptions","organizations_url":"https://api.github.com/users/bananabr/orgs","repos_url":"https://api.github.com/users/bananabr/repos","events_url":"https://api.github.com/users/bananabr/events{/privacy}","received_events_url":"https://api.github.com/users/bananabr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-07T13:10:54Z","updated_at":"2016-10-07T13:20:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/logstash-plugins/logstash-filter-ruby/pulls/28","html_url":"https://github.com/logstash-plugins/logstash-filter-ruby/pull/28","diff_url":"https://github.com/logstash-plugins/logstash-filter-ruby/pull/28.diff","patch_url":"https://github.com/logstash-plugins/logstash-filter-ruby/pull/28.patch"},"body":"Hello all,\r\n\r\nI just spent a couple of hours trying to troubleshoot a Ruby Exception error as all my logstash logs told me was:\r\n`\"{:timestamp=>\"2016-10-06T19:59:22.141000-0300\", :message=>\"Ruby exception occurred: undefined method '[]' for nil:NilClass\", :level=>:error}\"`\r\n\r\nI really think exception logging should be more verbose like in this test:\r\n\r\n **/opt/logstash/bin/logstash -e 'input{stdin{}}filter{ruby{code => \"nil.Ex\"}}output{stdout{codec => \"rubydebug\"}}'**\r\n```\r\nSettings: Default pipeline workers: 2\r\nPipeline main started\r\ntest\r\nRuby exception occurred: {\"exception\"=>#<NoMethodError: undefined method `Ex' for nil:NilClass>, \"event\"=>#<LogStash::Event:0x46637b9d @metadata_accessors=#<LogStash::Util::Accessors:0x3adb2956 @store={}, @lut={}>, @cancelled=false, @data={\"message\"=>\"test\", \"@version\"=>\"1\", \"@timestamp\"=>\"2016-10-07T12:53:08.775Z\", \"host\"=>\"ubuntu\"}, @metadata={}, @accessors=#<LogStash::Util::Accessors:0x85d851 @store={\"message\"=>\"test\", \"@version\"=>\"1\", \"@timestamp\"=>\"2016-10-07T12:53:08.775Z\", \"host\"=>\"ubuntu\"}, @lut={\"host\"=>[{\"message\"=>\"test\", \"@version\"=>\"1\", \"@timestamp\"=>\"2016-10-07T12:53:08.775Z\", \"host\"=>\"ubuntu\"}, \"host\"], \"message\"=>[{\"message\"=>\"test\", \"@version\"=>\"1\", \"@timestamp\"=>\"2016-10-07T12:53:08.775Z\", \"host\"=>\"ubuntu\"}, \"message\"]}>>, \"code\"=>\"nil.Ex\"} {:level=>:error}\r\n{\r\n       \"message\" => \"test\",\r\n      \"@version\" => \"1\",\r\n    \"@timestamp\" => \"2016-10-07T12:53:08.775Z\",\r\n          \"host\" => \"ubuntu\",\r\n          \"tags\" => [\r\n        [0] \"_rubyexception\"\r\n    ]\r\n}\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-filter-ruby/issues/comments/252249977","html_url":"https://github.com/logstash-plugins/logstash-filter-ruby/pull/28#issuecomment-252249977","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-filter-ruby/issues/28","id":252249977,"user":{"login":"jsvd","id":31809,"avatar_url":"https://avatars.githubusercontent.com/u/31809?v=3","gravatar_id":"","url":"https://api.github.com/users/jsvd","html_url":"https://github.com/jsvd","followers_url":"https://api.github.com/users/jsvd/followers","following_url":"https://api.github.com/users/jsvd/following{/other_user}","gists_url":"https://api.github.com/users/jsvd/gists{/gist_id}","starred_url":"https://api.github.com/users/jsvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsvd/subscriptions","organizations_url":"https://api.github.com/users/jsvd/orgs","repos_url":"https://api.github.com/users/jsvd/repos","events_url":"https://api.github.com/users/jsvd/events{/privacy}","received_events_url":"https://api.github.com/users/jsvd/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T13:20:20Z","updated_at":"2016-10-07T13:20:20Z","body":"This pr introduces a bug in the code, please check the output from the Travis job failure https://travis-ci.org/logstash-plugins/logstash-filter-ruby/builds/165810098 "}}
{"actor":{"display_login":"jsvd"}}