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:
Wiibaa 2012-09-14 12:28:29 +02:00
parent 2eb1551805
commit 87476ad9d6
2 changed files with 5 additions and 5 deletions

View file

@ -8,3 +8,7 @@ Run them all:
`rspec spec/**/*.rb`
Debug one test:
`LOGSTASH_DEBUG=y rspec spec/the/test.rb`

View file

@ -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