lib/syslog-sd/notifier.rb in syslog-sd-1.2.1 vs lib/syslog-sd/notifier.rb in syslog-sd-1.2.2

- old
+ new

@@ -116,10 +116,12 @@ def notify_with_level!(message_level, *args) return unless @enabled extract_hash(*args) @hash['level'] = message_level unless message_level.nil? if @hash['level'] >= level - @sender.send_datagram(serialize_hash) + str = serialize_hash + @sender.send_datagram(str) + str end end def extract_hash(object = nil, args = {}) primary_data = if object.respond_to?(:to_hash)