Improve error message when exception happens
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start at the Ruby filter entry point and trace its exception handling for the date-parsing failure described in the report. Reproduce the error if possible and confirm that the resulting log message identifies the Ruby filter, while preserving the useful exception details.
Written by the indexing model from the issue text.
Description
System info:
- Ubuntu 14.04.3 64 bit
- Logstash 2.1.0 from Elastic deb repo
Due to date parsing issue, I got the following in my logs:
{:timestamp=>"2015-11-25T13:50:28.229000-0700", :message=>"Ruby exception occurred: can't dup NilClass", :level=>:error}
After debugging, I figured that it came from the Ruby filter because parsing failed (and the field I was working on wasn't set.
It would be nice if the error indicated it came from the ruby filter, that would help debugging a lot.
- Dominant language
- Ruby
- Stars
- 18
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from logstash-plugins/logstash-filter-ruby
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
bug status:needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
bug docs
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
exception-handling
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
-
exception-handling logging-improvements
logstash-plugins/logstash-filter-ruby#49 · 2 comments · 2 assignees ·
All issues in logstash-plugins/logstash-filter-ruby
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TheOdinProject/curriculum#31408 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
notch8/utk_knapsack#148 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Homebrew/homebrew-cask#288729 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100