From c32c3f88466656b8b29786f819a51ed5bf1b4328 Mon Sep 17 00:00:00 2001 From: Yuri Smirnov Date: Wed, 17 Apr 2024 12:52:28 +0300 Subject: [PATCH] wip --- lib/umbrellio_utils/semantic_logger/tiny_json_formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/umbrellio_utils/semantic_logger/tiny_json_formatter.rb b/lib/umbrellio_utils/semantic_logger/tiny_json_formatter.rb index 7733987..60b7811 100644 --- a/lib/umbrellio_utils/semantic_logger/tiny_json_formatter.rb +++ b/lib/umbrellio_utils/semantic_logger/tiny_json_formatter.rb @@ -82,7 +82,7 @@ def pack_data(log) # Calculates MD5 fingerprint for the thread in which the log was made. # @return [String] truncated `MD5` hash. def thread_fingerprint_for(log) - Digest::MD5.hexdigest("#{log.thread_name}#{Process.pid}")[0...8] + Digest::MD5.hexdigest("#{Thread.current.object_id}#{Process.pid}")[0...8] end # Renders either exception or message of the log.