Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
meln1k committed Nov 16, 2023
1 parent 4a49b68 commit d03c2ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fixbackend/cloud_accounts/service_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,12 @@ async def process_domain_event(self, message: Json, context: MessageContext) ->
match context.kind:
case TenantAccountsCollected.kind:
event = TenantAccountsCollected.from_json(message)
log.info(f"Received {TenantAccountsCollected.kind} event: {event}")
set_workspace_id(str(event.tenant_id))
for account_id, account in event.cloud_accounts.items():
set_fix_cloud_account_id(account_id)
set_cloud_account_id(account.account_id)
log.info(f"Updating account {account_id}")
await self.cloud_account_repository.update(
account_id,
lambda acc: evolve(
Expand Down

0 comments on commit d03c2ae

Please sign in to comment.