lib/timber/current_context.rb in timber-2.1.1 vs lib/timber/current_context.rb in timber-2.1.2

- old
+ new

@@ -156,9 +156,14 @@ hostname = Socket.gethostname pid = Process.pid system_context = Contexts::System.new(hostname: hostname, pid: pid) add_to!(new_hash, system_context) + # Runtime context + thread_object_id = Thread.current.object_id + runtime_context = Contexts::System.new(vm_pid: thread_object_id) + add_to!(new_hash, runtime_context) + new_hash end def add_to!(hash, object) context = Contexts.build(object) # Normalizes objects into a Timber::Context descendant.