Skip to content

Commit dc2d86c

Browse files
authored
Merge pull request #1710 from basecamp/flavorjones/plan-b-cleanup
Restore structured logging of `queenbee_id`
2 parents e6bb9c1 + 9f11715 commit dc2d86c

3 files changed

Lines changed: 7 additions & 18 deletions

File tree

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# # TODO:PLANB: we should log account id
2-
# ActiveSupport.on_load(:action_controller_base) do
3-
# before_action { logger.struct tenant: ApplicationRecord.current_tenant }
4-
# end
1+
ActiveSupport.on_load(:action_controller_base) do
2+
before_action do
3+
if Current.account.present?
4+
logger.try(:struct, account: { queenbee_id: Current.account.external_account_id })
5+
end
6+
end
7+
end

lib/tasks/seed.rake

Lines changed: 0 additions & 12 deletions
This file was deleted.

test/test_helper.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ class TestCase
4848
include Turbo::Broadcastable::TestHelper
4949

5050
setup do
51-
# TODO:PLANB: this is hacky, we should sort through the `Current` dependencies and figure out
52-
# how to set Current.user without needing both a session *and* an account
5351
Current.account = accounts("37s")
5452
end
5553

0 commit comments

Comments
 (0)