mirror of
https://github.com/elastic/logstash.git
synced 2025-04-19 04:15:23 -04:00
Using already existing LOGSTASH_DEBUG env variable to debug + update README
Setting DEBUG env variable doesn't change anything for me Furthermode LOGSTASH_DEBUG variable is already defined in Logstash::Logger, better to reuse it and let interested people know
This commit is contained in:
parent
2eb1551805
commit
87476ad9d6
2 changed files with 5 additions and 5 deletions
|
@ -8,3 +8,7 @@ Run them all:
|
|||
|
||||
`rspec spec/**/*.rb`
|
||||
|
||||
Debug one test:
|
||||
|
||||
`LOGSTASH_DEBUG=y rspec spec/the/test.rb`
|
||||
|
||||
|
|
|
@ -13,11 +13,7 @@ end
|
|||
|
||||
module LogStash
|
||||
module RSpec
|
||||
if ENV["DEBUG"]
|
||||
require "cabin"
|
||||
Cabin::Channel.get.level = :debug
|
||||
end
|
||||
|
||||
|
||||
def config(configstr)
|
||||
@config_str = configstr
|
||||
end # def config
|
||||
|
|
Loading…
Add table
Reference in a new issue