From c850986c96901a148e2ae0c110851db4c1322793 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Wed, 15 Mar 2023 14:44:31 +0100 Subject: [PATCH] chore: log pid for each request --- config/initializers/lograge.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/initializers/lograge.rb b/config/initializers/lograge.rb index 5686a638f..9ed7cf9bb 100644 --- a/config/initializers/lograge.rb +++ b/config/initializers/lograge.rb @@ -20,7 +20,10 @@ Rails.application.configure do browser_version: event.payload[:browser_version], platform: event.payload[:platform], client_ip: event.payload[:client_ip], - request_id: event.payload[:request_id] + request_id: event.payload[:request_id], + process: { + pid: Process.pid + } }.compact end