Skip to content

Commit

Permalink
Merge pull request elastic#421 from cosmok/mutate_add_debug
Browse files Browse the repository at this point in the history
debug msg when trying to split a non-string type
  • Loading branch information
fetep committed Mar 29, 2013
2 parents 78023ba + e486268 commit fea60c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/logstash/filters/mutate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@ def split(event)
@split.each do |field, separator|
if event[field].is_a?(String)
event[field] = event[field].split(separator)
else
@logger.debug("Can't split something that isn't a string",
:field => field, :value => event[field])
end
end
end
Expand Down

0 comments on commit fea60c8

Please sign in to comment.