diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-18 18:03:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-18 18:03:56 +0200 |
commit | 1bc077dc740fcaa284588fff43e71da659090980 (patch) | |
tree | 4d3469dc82d57f9e45eb14666958c485dc00fbfc /config/environments | |
parent | 2b4e2616eab746e4b13f77fef404165b972168ad (diff) |
Add HTTP signature keyId to request log (#11591)
Diffstat (limited to 'config/environments')
-rw-r--r-- | config/environments/production.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 70baa6ad1..d1b5a8df5 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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 |