lib/timber/log_entry.rb in timber-2.1.0.rc3 vs lib/timber/log_entry.rb in timber-2.1.0.rc4

- old
+ new

@@ -31,19 +31,9 @@ # This follows the default behavior set by ::Logger # See: https://github.com/ruby/ruby/blob/trunk/lib/logger.rb#L615 @message = message.is_a?(String) ? message : message.inspect @tags = options[:tags] @time_ms = options[:time_ms] - - context_snapshot = {} if context_snapshot.nil? - - # Set the system context for each log entry since processes can be forked - # and the process ID could change. - hostname = Socket.gethostname - pid = Process.pid - system_context = Contexts::System.new(hostname: hostname, pid: pid) - context_snapshot[system_context.keyspace] = system_context.as_json - @context_snapshot = context_snapshot @event = event end # Builds a hash representation of containing simply objects, suitable for serialization. \ No newline at end of file