changed log-output

This commit is contained in:
Claus-Peter Huebner 2023-10-25 15:07:25 +02:00
parent 45c473aeec
commit 8d8d5275de
2 changed files with 7 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export async function startCommunityAuthentication(
logger.debug(
'Authentication: started for foreignFedCom:',
foreignFedCom.endPoint,
stringToHex(foreignFedCom.publicKey.toString()),
foreignFedCom.publicKey.toString('hex'),
)
// check if communityUuid is a valid v4Uuid and not still a temporary onetimecode
if (
@ -43,6 +43,11 @@ export async function startCommunityAuthentication(
args.url = homeFedCom.endPoint.endsWith('/')
? homeFedCom.endPoint
: homeFedCom.endPoint + '/' + homeFedCom.apiVersion
logger.debug(
'Authentication: before client.openConnection() args:',
args.publicKey,
args.url,
)
if (await client.openConnection(args)) {
logger.info(`Authentication: successful initiated at community:`, foreignFedCom.endPoint)
} else {

View File

@ -21,6 +21,7 @@ export class AuthenticationResolver {
): Promise<boolean> {
logger.debug(
`Authentication: openConnection() via apiVersion=1_0 ...`,
args,
args.url,
stringToHex(args.publicKey),
)