[ENV] Add lograge config
This commit is contained in:
parent
d2094fbbd1
commit
3e23ba5a4f
3 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,7 @@ Rails.application.configure do
|
|||
config.lograge.custom_options = lambda do |event|
|
||||
{
|
||||
type: 'tps',
|
||||
source: ENV['SOURCE'],
|
||||
tags: ['request', event.payload[:exception] ? 'exception' : nil].compact,
|
||||
user_id: event.payload[:user_id],
|
||||
user_email: event.payload[:user_email],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue