Skip to content

Commit b8f798d

Browse files
authored
fixed error on config reload (#235)
1 parent 118d233 commit b8f798d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/fluent/plugin/out_splunk.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ def configure(conf)
9292
end
9393
end
9494

95+
def shutdown
96+
super
97+
end
98+
9599
def write(chunk)
96100
log.trace { "#{self.class}: Received new chunk, size=#{chunk.read.bytesize}" }
97101

lib/fluent/plugin/out_splunk_hec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ def start
169169
end
170170

171171
def shutdown
172+
@conn.shutdown if not @conn.nil?
172173
super
173-
@conn.shutdown
174174
end
175175

176176
def format(tag, time, record)

0 commit comments

Comments
 (0)