fluent-logger 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +6 -0
- data/lib/fluent/logger/fluent.rb +7 -1
- data/lib/fluent/logger/version.rb +1 -1
- metadata +4 -4
data/ChangeLog
CHANGED
data/lib/fluent/logger/fluent.rb
CHANGED
@@ -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
|
|
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
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-
|
18
|
+
date: 2011-08-28 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|