From 932bed0d7c33ab1e207a273ccc31232574624554 Mon Sep 17 00:00:00 2001 From: Nathan Lie Date: Wed, 25 Sep 2024 10:18:36 -0700 Subject: [PATCH] chore: more debug logs --- packages/backend/src/tenant/service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/backend/src/tenant/service.ts b/packages/backend/src/tenant/service.ts index 481992aa06..0cca7e260e 100644 --- a/packages/backend/src/tenant/service.ts +++ b/packages/backend/src/tenant/service.ts @@ -173,6 +173,7 @@ async function createTenant( email: options.email, kratosIdentityId: identityId }) + deps.logger.info({ tenant }, 'created tenant') const endpoints = await deps.tenantEndpointService.create({ endpoints: options.endpoints, @@ -180,6 +181,8 @@ async function createTenant( trx }) + deps.logger.info({ endpoints }, 'created endpoints') + // call auth admin api const mutation = gql` mutation CreateAuthTenant($input: CreateTenantInput!) { @@ -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')