rack-logstash 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06f83e4194c0fd6a96dc7111b58d5e676918a256
4
- data.tar.gz: 7aee0cd39d7417583c0808bd8a7f25111c4c3d09
3
+ metadata.gz: f6194bf38754cc2bd1e2a4f710f849062700bbef
4
+ data.tar.gz: caa4203aefbdd9693a534c699d5cad7663455df8
5
5
  SHA512:
6
- metadata.gz: fdb4eb547e06aa8ea99621e406308ef553429d516032d6099b43a22aeca5afb73d9b608e289a6fac58d3d834f364c8b38ce43f282aec31728e34b5f68831edc0
7
- data.tar.gz: 9a986091bb745cf765f7afbee0a9502872263a02f1850e082aea1de5bb062e85d09e0c52fc37d6ac5a5ecf4b256646234328898e17d3df00afe750097c1f49d6
6
+ metadata.gz: 8cf5e13fa9c69cce9f5047d7b7cc7b0a753cfb4a1af861c1061bbb046d3683b13a2f4ee5dd862b1ebb365cc0f05caa2e69d2863e90a2d674172c3abd28cca6b3
7
+ data.tar.gz: e7381665d393fd83333cc7b612ee76b9cc912daa4db3eb9b01f5826ad3945cc3b1af503a5a1bae914234d6bd18c176bcd1b6069428baa01205e6c678bb9585a2
@@ -41,8 +41,8 @@ module Rack
41
41
  end
42
42
  Thread.stop
43
43
  rescue Exception => ex
44
- puts "sender_thread died! #{ex.message} (#{ex.class})"
45
- puts ex.backtrace.map { |l| " #{l}" }
44
+ @stderr.puts "sender_thread died! #{ex.message} (#{ex.class})"
45
+ $stderr.puts ex.backtrace.map { |l| " #{l}" }
46
46
  end
47
47
  end
48
48
  end
@@ -52,7 +52,7 @@ module Rack
52
52
  begin
53
53
  @socket ||= TCPSocket.new(host, port)
54
54
  rescue Errno::ECONNREFUSED, Errno::ETIMEDOUT => ex
55
- puts "#{ex.class}... retrying"
55
+ $stderr.puts "rack-logstash: #{ex.class} while attempting to connect to #{host}:#{port}... retrying"
56
56
  sleep 0.1
57
57
  retry
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-logstash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-01 00:00:00.000000000 Z
11
+ date: 2016-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler