fluent-plugin-syslog_rfc5424 0.7.2.alpha11 → 0.7.2

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: 99c2379c05e467f536a95722e80de53691f11902
4
- data.tar.gz: b4e1a05cf03d82c78bf49af7f135c623885fb95c
3
+ metadata.gz: 7e904557320502d2ad3c0ef6e191f86d975db51e
4
+ data.tar.gz: 108731169366146f496c5fde50e48d732f3e5754
5
5
  SHA512:
6
- metadata.gz: 475c08116b0ed0a151b8672deef7de7dc62f5f906a529e44222157dbc686c220979f87fbd51cb71fbf717ed533c02021031a9da5fe2e5eb5cd89f74317c62b76
7
- data.tar.gz: 1f3bf69b5410dbc4e7721321c385cb22ef0d71314e2c5c4d9a5397de0f05a6fd9a49d740422f9a59501cc20f9c19f32af0ae43d03951c537d157eb65edeb2316
6
+ metadata.gz: d833f7032c2c86b22e9b6dac5655af28f80f2a346c4c2a051b6af5150c6e80dfa82d3314aaebc630e364da87f59c778979ed7f2bc77a4fe6b1bb1abebde27dec
7
+ data.tar.gz: a11a9ad57de818c8bba185070f838b8ed24646e6650e242f880e08e7745239728ac5643328ef673688fd2a9c4614208bf72f5e25bdd896d8443627233e749b57
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-syslog_rfc5424"
7
- spec.version = "0.7.2.alpha11"
7
+ spec.version = "0.7.2"
8
8
  spec.authors = ["Pivotal"]
9
9
  spec.email = %w(cf-loggregator@pivotal.io)
10
10
  spec.homepage = "https://github.com/cloudfoundry/fluent-plugin-syslog_rfc5424"
@@ -16,6 +16,9 @@ module Fluent
16
16
  end
17
17
 
18
18
  def format(tag, time, record)
19
+ log.debug("Tag")
20
+ log.debug(tag.to_s)
21
+
19
22
  log.debug("Record")
20
23
  log.debug(record.map { |k, v| "#{k}=#{v}" }.join('&'))
21
24
 
@@ -28,12 +28,9 @@ module Fluent
28
28
  tag = chunk.metadata.tag
29
29
  chunk.each do |time, record|
30
30
  begin
31
- socket.write_nonblock @formatter.format(tag, time, record)
32
- IO.select(nil, [socket], nil, 1) || raise("Socket timeout during write")
31
+ socket.write @formatter.format(tag, time, record)
33
32
  rescue
34
- log.debug("Write Error Recreating Connection")
35
33
  @sockets[socket_key(@transport.to_sym, @host, @port)] = nil
36
- socket.close
37
34
  raise
38
35
  end
39
36
  end
@@ -57,8 +54,7 @@ module Fluent
57
54
  def socket_options
58
55
  return {} unless @transport == 'tls'
59
56
 
60
- # TODO: make timeouts configurable
61
- { insecure: @insecure, verify_fqdn: !@insecure, cert_paths: @trusted_ca_path, connect_timeout: 1, send_timeout: 1, recv_timeout: 1, linger_timeout: 1 }
57
+ { insecure: @insecure, verify_fqdn: !@insecure, cert_paths: @trusted_ca_path }
62
58
  end
63
59
 
64
60
  def socket_key(transport, host, port)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-syslog_rfc5424
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2.alpha11
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-31 00:00:00.000000000 Z
11
+ date: 2020-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -145,9 +145,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - ">"
148
+ - - ">="
149
149
  - !ruby/object:Gem::Version
150
- version: 1.3.1
150
+ version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
153
  rubygems_version: 2.6.13