Skip to content

Commit

Permalink
fixed error on config reload (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
hvaghani221 authored Apr 18, 2022
1 parent 118d233 commit b8f798d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/fluent/plugin/out_splunk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ def configure(conf)
end
end

def shutdown
super
end

def write(chunk)
log.trace { "#{self.class}: Received new chunk, size=#{chunk.read.bytesize}" }

Expand Down
2 changes: 1 addition & 1 deletion lib/fluent/plugin/out_splunk_hec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def start
end

def shutdown
@conn.shutdown if not @conn.nil?
super
@conn.shutdown
end

def format(tag, time, record)
Expand Down

0 comments on commit b8f798d

Please sign in to comment.