Restore structured logging of queenbee_id
and clean up some other small remaining "plan b" to-dos.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
# # TODO:PLANB: we should log account id
|
||||
# ActiveSupport.on_load(:action_controller_base) do
|
||||
# before_action { logger.struct tenant: ApplicationRecord.current_tenant }
|
||||
# end
|
||||
ActiveSupport.on_load(:action_controller_base) do
|
||||
before_action do
|
||||
if Current.account.present?
|
||||
logger.try(:struct, account: { queenbee_id: Current.account.external_account_id })
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user