mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Use logger not @logger in source_loader
This makes it consistent with the rest of the class. I noticed we have some test failures due to @logger not existing. Probably an issue from when the logger was javafied. This is causing test failures like: https://logstash-ci.elastic.co/job/elastic+logstash+6.x+multijob-unix-compatibility/os=oraclelinux/140/consoleFull Will open a separate issue about the missing @logger var ``` An exception happened when converging configuration {:exception=>NoMethodError, :message=>"undefined method `error' for nil:NilClass", :backtrace=>["/var/lib/jenkins/workspace/elastic+logstash+6.x+multijob-unix-compatibility/os/oraclelinux/logstash-core/lib/logstash/config/source_loader.rb:55:in `block in fetch'", "org/jruby/ext/thread/Mutex.java:148:in `synchronize'", "/var/lib/jenkins/workspace/elastic+logstash+6.x+multijob-unix-compatibility/os/oraclelinux/logstash-core/lib/logstash/config/source_loader.rb:54:in `fetch'", "/var/lib/jenkins/workspace/elastic+logstash+6.x+multijob-unix-compatibility/os/oraclelinux/logstash-core/lib/logstash/agent.rb:133:in `converge_state_and_update'", "/var/lib/jenkins/workspace/elastic+logstash+6.x+multijob-unix-compatibility/os/oraclelinux/logstash-core/lib/logstash/agent.rb:84:in `execute'", "/var/lib/jenkins/workspace/elastic+logstash+6.x+multijob-unix-compatibility/os/oraclelinux/logstash-core/spec/support/shared_contexts.rb:26:in `block in (root)'", "org/jruby/RubyBasicObject.java:1728:in `instance_exec'", "/var/lib/jenkins/workspace/elastic+logstash+6.x+multijob-unix-compatibility/os/oraclelinux/vendor/bundle/jruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:350:in `run'", "/var/lib/jenkins/workspace/elastic+logstash+6.x+multijob-unix-compatibility/os/oraclelinux/vendor/bundle/jruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:509:in `block in run_owned_hooks_for'", "org/jruby/RubyArray.java:1734:in `each'", "/var/lib/jenkins/workspace/elastic+logstash+6.x+multijob-unix-compatibility/os/oraclelinux/vendor/bundle/jruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:508:in `run_owned_hooks_for'", "/var/ ``` Fixes #9691
This commit is contained in:
parent
0aa798f350
commit
5541e70dda
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ module LogStash module Config
|
|||
# This shouldn't happen with the settings object or with any external plugins.
|
||||
# but lets add a guard so we fail fast.
|
||||
@sources_lock.synchronize do
|
||||
@logger.error "No source loaders matched! This shouldn't happen", :sources => @sources
|
||||
logger.error "No source loaders matched! This shouldn't happen", :sources => @sources
|
||||
end
|
||||
raise LogStash::InvalidSourceLoaderSettingError, "Can't find an appropriate config loader with current settings"
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue