Skip to content

Commit

Permalink
Merge pull request #1044 from sparrowt/patch-2
Browse files Browse the repository at this point in the history
Avoid long worrying log line at info level
  • Loading branch information
cosmo0920 authored Jan 20, 2024
2 parents dcf2f9b + 9aa8ae1 commit 96e1ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/out_elasticsearch_data_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def data_stream_exist?(datastream_name, host = nil)
response = client(host).indices.get_data_stream(params)
return (not response.is_a?(TRANSPORT_CLASS::Transport::Errors::NotFound))
rescue TRANSPORT_CLASS::Transport::Errors::NotFound => e
log.info "Specified data stream does not exist. Will be created: <#{e}>"
log.info "Specified data stream does not exist. Will be created: <#{datastream_name}>"
return false
end
end
Expand Down

0 comments on commit 96e1ec4

Please sign in to comment.