1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Reference process PID using the Process#pid

This change will allow formatter to run from Ractors other than main.
This commit is contained in:
Maciej Mensfeld 2020-09-28 15:20:35 +02:00 committed by Aaron Patterson
parent c38605de6b
commit 0fb1a67bda
Notes: git 2020-09-30 03:51:14 +09:00

View file

@ -12,7 +12,7 @@ class Logger
end
def call(severity, time, progname, msg)
Format % [severity[0..0], format_datetime(time), $$, severity, progname,
Format % [severity[0..0], format_datetime(time), Process.pid, severity, progname,
msg2str(msg)]
end