lib/timber/log_entry.rb in timber-1.1.4 vs lib/timber/log_entry.rb in timber-1.1.5

- old
+ new

@@ -37,11 +37,11 @@ options ||= {} hash = {:level => level, :dt => formatted_dt, :message => message, :tags => tags, :time_ms => time_ms} if !event.nil? - hash[:event] = event + hash[:event] = event.as_json end if !context_snapshot.nil? && context_snapshot.length > 0 hash[:context] = context_snapshot end @@ -58,10 +58,10 @@ end else hash end - Util::Hash.compact(hash) + Util::Hash.deep_compact(hash) end def to_json(options = {}) as_json(options).to_json end \ No newline at end of file