Skip to content

Commit

Permalink
chore: more debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Sep 25, 2024
1 parent ecd2736 commit 932bed0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/backend/src/tenant/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,16 @@ async function createTenant(
email: options.email,
kratosIdentityId: identityId
})
deps.logger.info({ tenant }, 'created tenant')

const endpoints = await deps.tenantEndpointService.create({
endpoints: options.endpoints,
tenantId: tenant.id,
trx
})

deps.logger.info({ endpoints }, 'created endpoints')

// call auth admin api
const mutation = gql`
mutation CreateAuthTenant($input: CreateTenantInput!) {
Expand All @@ -205,6 +208,8 @@ async function createTenant(
mutation,
variables
})

deps.logger.info('created tenant on auth api')
await trx.commit()
tenant.endpoints = endpoints
deps.logger.info('created tenant successfully')
Expand Down

0 comments on commit 932bed0

Please sign in to comment.