lib/gelf/logger.rb in gelf_redux-3.2.2 vs lib/gelf/logger.rb in gelf_redux-4.0.0
- old
+ new
@@ -12,10 +12,11 @@
if message.nil?
message = progname
progname = default_options['facility']
end
- message_hash = { 'facility' => progname }
+ message_hash = {}
+ message_hash['facility'] = progname if progname
if message.is_a?(Hash)
message.each do |key, value|
message_hash[key.to_s] = value.to_s
end