chore(lograge): fix log without to_log key

This commit is contained in:
Colin Darie 2023-11-13 15:52:09 +01:00
parent 485dcd1db7
commit 9d7f747805
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -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