Use tracer as logger

Fixes #4812
This commit is contained in:
Lucas Bremgartner 2016-03-13 15:16:04 +01:00 committed by Pier-Hugues Pellerin
parent d7de41802e
commit 674baa7f08

View file

@ -314,7 +314,7 @@ describe LogStash::Outputs::ZeroMQ do
context "when in server mode" do
it "a bound info line is logged" do
allow(tracer).to receive(:debug)
output.logger = logger
output.logger = tracer
expect(tracer).to receive(:info).with("0mq: bound", {:address=>"tcp://127.0.0.1:2120"})
output.register
output.do_close