Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change codec instance comparison #69

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.0.6
- Change codec instance comparison [#69](https://github.com/logstash-plugins/logstash-output-syslog/pull/69)

## 3.0.5
- Docs: Set the default_codec doc attribute.

Expand Down
2 changes: 1 addition & 1 deletion lib/logstash/outputs/syslog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def register
@ssl_context = setup_ssl
end

if @codec.instance_of? LogStash::Codecs::Plain
if @codec.class.name == "LogStash::Codecs::Plain"
if @codec.config["format"].nil?
@codec = LogStash::Codecs::Plain.new({"format" => @message})
end
Expand Down
2 changes: 1 addition & 1 deletion logstash-output-syslog.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|

s.name = 'logstash-output-syslog'
s.version = '3.0.5'
s.version = '3.0.6'
s.licenses = ['Apache License (2.0)']
s.summary = "Sends events to a `syslog` server"
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
Expand Down