From 9d7f747805ff44193cc8f30babfbb57e24849fbb Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 13 Nov 2023 15:52:09 +0100 Subject: [PATCH] chore(lograge): fix log without to_log key --- config/initializers/lograge.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/lograge.rb b/config/initializers/lograge.rb index 391938663..6c3676fee 100644 --- a/config/initializers/lograge.rb +++ b/config/initializers/lograge.rb @@ -15,7 +15,7 @@ Rails.application.configure do } } - hash.merge!(event.payload[:to_log]) + hash.merge!(event.payload[:to_log]) if event.payload.key?(:to_log) hash.compact end