Add HTTP signature keyId to request log (#11591)
This commit is contained in:
parent
2b4e2616ea
commit
1bc077dc74
2 changed files with 20 additions and 1 deletions
|
@ -71,6 +71,12 @@ Rails.application.configure do
|
|||
# Better log formatting
|
||||
config.lograge.enabled = true
|
||||
|
||||
config.lograge.custom_payload do |controller|
|
||||
if controller.respond_to?(:signed_request?) && controller.signed_request?
|
||||
{ key: controller.signature_key_id }
|
||||
end
|
||||
end
|
||||
|
||||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue