Skip to content

Commit

Permalink
add warning for embedded => true
Browse files Browse the repository at this point in the history
Closes #99.
  • Loading branch information
talevy committed Apr 7, 2015
1 parent 6ddb89b commit 5e29504
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/logstash/outputs/elasticsearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ def register

if @embedded
raise(LogStash::ConfigurationError, "The 'embedded => true' setting is only valid for the elasticsearch output under JRuby. You are running #{RUBY_DESCRIPTION}") unless LogStash::Environment.jruby?
@logger.warn("The 'embedded => true' setting is enabled. This is not recommended for production use!!!")
# LogStash::Environment.load_elasticsearch_jars!

# Default @host with embedded to localhost. This should help avoid
Expand Down

0 comments on commit 5e29504

Please sign in to comment.