mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
switch info-log output to debug-level
This commit is contained in:
parent
b25c37eb08
commit
08810bc88a
@ -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)
|
||||
}
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user