mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-11-28 15:45:51 +00:00
Allow for less verbose logging from env
This commit is contained in:
@@ -48,15 +48,17 @@ const onValidation = async ({
|
||||
/**
|
||||
* Debug output
|
||||
*/
|
||||
console.log(
|
||||
networkId,
|
||||
validation.ledger_index,
|
||||
relativeStorDir,
|
||||
validation.validation_public_key,
|
||||
// validation.validated_hash, // parent hash
|
||||
validation.ledger_hash, // ledger_hash
|
||||
connectionUrl,
|
||||
)
|
||||
if (!process.env?.NOVALIDATIONLOG) {
|
||||
console.log(
|
||||
networkId,
|
||||
validation.ledger_index,
|
||||
relativeStorDir,
|
||||
validation.validation_public_key,
|
||||
// validation.validated_hash, // parent hash
|
||||
validation.ledger_hash, // ledger_hash
|
||||
connectionUrl,
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Create validation file
|
||||
|
||||
Reference in New Issue
Block a user