Skip to content

Conversation

@ferbar
Copy link

@ferbar ferbar commented May 24, 2018

If an expression failes in expand() a backtrace to expand is logged in fluentd.log. This patch loggs the failed expression as well.

begin
record[k] = v.expand(tag, time, record, tag_parts)
rescue
$log.error("filter_record_modifier::filter - exception in expression: '#{v.getcode}'")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conf.elements.select { |element| element.name == 'record' }.each do |element|

config's record elements has original code so we don't need to store code in DynamicExpander.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants