Skip to content

Commit

Permalink
Error on unknown validator symbol + correct dns timeout validator
Browse files Browse the repository at this point in the history
  • Loading branch information
wiibaa committed Nov 26, 2013
1 parent fce464d commit 527e716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/logstash/config/mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ def validate_value(value, validator)
end

result = value.first
else
return false, "Unknown validator symbol #{validator}"
end # case validator
else
return false, "Unknown validator #{validator.class}"
Expand Down
2 changes: 1 addition & 1 deletion lib/logstash/filters/dns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class LogStash::Filters::DNS < LogStash::Filters::Base
# versions was 'append' by accident.

# resolv calls will be wrapped in a timeout instance
config :timeout, :validate => :int, :default => 2
config :timeout, :validate => :number, :default => 2

public
def register
Expand Down

0 comments on commit 527e716

Please sign in to comment.