fluent-logger 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ChangeLog CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ Release 0.3.1 - 2011/08/28
3
+
4
+ * FluentLogger#initialize doesn't raise error when connection is failed.
5
+ Instead, it tries to reconnect.
6
+
7
+
2
8
  Release 0.3.0 - 2011/08/21
3
9
 
4
10
  * Added 'tag' for event logs
@@ -35,11 +35,17 @@ class FluentLogger < LoggerBase
35
35
  @pending = nil
36
36
  @host = host
37
37
  @port = port
38
- connect!
39
38
 
40
39
  @limit = BUFFER_LIMIT
41
40
  @logger = ::Logger.new(STDERR)
42
41
 
42
+ begin
43
+ connect!
44
+ rescue
45
+ @logger.error "Failed to connect fluentd: #{$!}"
46
+ @logger.error "Connection will be retried."
47
+ end
48
+
43
49
  FluentLogger.close_on_exit(self)
44
50
  end
45
51
 
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Logger
3
3
 
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-logger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sadayuki Furuhashi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-21 00:00:00 +09:00
18
+ date: 2011-08-28 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency