diff --git a/lib/umbrellio_utils/semantic_logger/tiny_json_formatter.rb b/lib/umbrellio_utils/semantic_logger/tiny_json_formatter.rb index 7733987..9e5395a 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] + "#{log.thread_name}-#{Process.pid}" end # Renders either exception or message of the log.