switch info-log output to debug-level

This commit is contained in:
Claus-Peter Huebner 2023-10-27 01:22:23 +02:00
parent b25c37eb08
commit 08810bc88a
6 changed files with 5 additions and 9 deletions

View File

@ -48,7 +48,7 @@ export async function startCommunityAuthentication(
args.url,
)
if (await client.openConnection(args)) {
logger.info(`Authentication: successful initiated at community:`, foreignFedCom.endPoint)
logger.debug(`Authentication: successful initiated at community:`, foreignFedCom.endPoint)
} else {
logger.error(`Authentication: can't initiate at community:`, foreignFedCom.endPoint)
}

View File

@ -20,10 +20,6 @@ export class AuthenticationResolver {
): Promise<boolean> {
const pubKeyBuf = Buffer.from(args.publicKey, 'hex')
logger.debug(`Authentication: openConnection() via apiVersion=1_0:`, args)
logger.debug(`Authentication: url=`, args.url)
logger.debug(`Authentication: publicKey=`, args.publicKey)
logger.debug(`Authentication: pubKeyBuf=`, pubKeyBuf)
logger.debug(`Authentication: pubKeyBufString=`, pubKeyBuf.toString('hex'))
// first find with args.publicKey the community 'comA', which starts openConnection request
const comA = await DbCommunity.findOneBy({

View File

@ -12,7 +12,7 @@ export class PublicCommunityInfoResolver {
logger.debug(`getPublicCommunityInfo() via apiVersion=1_0 ...`)
const homeCom = await DbCommunity.findOneByOrFail({ foreign: false })
const result = new GetPublicCommunityInfoResult(homeCom)
logger.info(`getPublicCommunityInfo()-1_0... return publicInfo=${JSON.stringify(result)}`)
logger.debug(`getPublicCommunityInfo()-1_0... return publicInfo=${JSON.stringify(result)}`)
return result
}
}

View File

@ -16,7 +16,7 @@ export class PublicKeyResolver {
apiVersion: '1_0',
},
})
logger.info(`getPublicKey()-1_0... return publicKey=${homeCom.publicKey}`)
logger.debug(`getPublicKey()-1_0... return publicKey=${homeCom.publicKey}`)
return new GetPublicKeyResult(homeCom.publicKey.toString())
}
}

View File

@ -96,7 +96,7 @@ export async function revertSettledReceiveTransaction(
await queryRunner.manager.save(DbPendingTransaction, pendingTx)
await queryRunner.commitTransaction()
logger.info(`commit revert settlement recipient Transaction successful...`)
logger.debug(`commit revert settlement recipient Transaction successful...`)
} else {
// TODO: if the last TX is not equivelant to pendingTX, the transactions must be corrected in EXPERT-MODE
throw new LogError(

View File

@ -91,7 +91,7 @@ export async function settlePendingReceiveTransaction(
await queryRunner.manager.save(DbPendingTransaction, pendingTx)
await queryRunner.commitTransaction()
logger.info(`commit recipient Transaction successful...`)
logger.debug(`commit recipient Transaction successful...`)
/*
await EVENT_TRANSACTION_SEND(sender, recipient, transactionSend, transactionSend.amount)