change logoutputs

This commit is contained in:
clauspeterhuebner 2025-07-01 15:32:21 +02:00
parent de7a77c30a
commit cc5f3f7ee4
2 changed files with 7 additions and 4 deletions

View File

@ -25,7 +25,7 @@ export async function startCommunityAuthentication(
})
const foreignCom = await DbCommunity.findOneByOrFail({ publicKey: foreignFedCom.publicKey })
logger.debug(
'Authentication: started with foreignFedCom:',
'started with foreignFedCom:',
foreignFedCom.endPoint,
foreignFedCom.publicKey.toString('hex'),
foreignCom.publicJwtKey,
@ -55,18 +55,20 @@ export async function startCommunityAuthentication(
args.publicKey = homeCom.publicKey.toString('hex')
args.jwt = jws
logger.debug(
'Authentication: before client.openConnection() args:',
'before client.openConnection() args:',
homeCom.publicKey.toString('hex'),
args.jwt,
)
if (await client.openConnection(args)) {
logger.debug(`Authentication: successful initiated at community:`, foreignFedCom.endPoint)
logger.debug(`successful initiated at community:`, foreignFedCom.endPoint)
} else {
logger.error(`Authentication: can't initiate at community:`, foreignFedCom.endPoint)
logger.error(`can't initiate at community:`, foreignFedCom.endPoint)
}
}
} catch (err) {
logger.error(`Error:`, err)
}
} else {
logger.debug(`foreignCom.communityUuid is not a valid v4Uuid or still a temporary onetimecode`)
}
}

View File

@ -13,6 +13,7 @@ export class CommunityLoggingView extends AbstractLoggingView {
foreign: this.self.foreign,
url: this.self.url,
publicKey: this.self.publicKey.toString(this.bufferStringFormat),
publicJwtKey: this.self.publicJwtKey,
communityUuid: this.self.communityUuid,
authenticatedAt: this.dateToString(this.self.authenticatedAt),
name: this.self.name,