Merge pull request #9702 from colinux/fix-lograge-to-log

Tech: fix log without to_log key
This commit is contained in:
LeSim 2023-11-13 16:03:01 +00:00 committed by GitHub
commit 7c8777557f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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