Skip to content

Commit

Permalink
Merge pull request #1 from EshantMonga/master
Browse files Browse the repository at this point in the history
Fixed argument error for unknown keyword :sync with Redis connection.
  • Loading branch information
RakeshKhullar authored Jan 3, 2024
2 parents b8f5403 + 44cbaad commit 066c21c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/logstash-logger/device/redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def initialize(opts)
@buffer_group = @list

normalize_path(opts)
delete_unknown_keywords(opts)

@redis_options = opts
end
Expand Down Expand Up @@ -64,6 +65,12 @@ def normalize_path(opts)
end
end

def delete_unknown_keywords(opts)
# due to restrictions in redis client version >= 5
# Continous error is being logged for unknown keywords, at present there is only one i.e. :sync
# to prevent that adding following line :)
opts.delete(:sync)
end
end
end
end

0 comments on commit 066c21c

Please sign in to comment.