Restore structured logging of queenbee_id

and clean up some other small remaining "plan b" to-dos.
This commit is contained in:
Mike Dalessio
2025-11-24 15:44:17 -05:00
parent e6bb9c1e96
commit 9f117159a6
3 changed files with 7 additions and 18 deletions
+7 -4
View File
@@ -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