From 0666363a513d528fe822b6ec70e2727ce99ed699 Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Fri, 24 Nov 2023 14:06:06 +1300 Subject: [PATCH] fix logging level (#556) --- packages/chopsticks/package.json | 6 ++++++ packages/core/src/blockchain/block-builder.ts | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/chopsticks/package.json b/packages/chopsticks/package.json index 1fe36210..015de479 100644 --- a/packages/chopsticks/package.json +++ b/packages/chopsticks/package.json @@ -71,6 +71,12 @@ "import": "./dist/esm/plugins/*.js", "default": "./dist/esm/plugins/*.js" }, + "./utils/*": { + "types": "./dist/types/utils/*.d.ts", + "require": "./dist/cjs/utils/*.js", + "import": "./dist/esm/utils/*.js", + "default": "./dist/esm/utils/*.js" + }, "./package.json": "./package.json", "./package.cjs.json": "./dist/cjs/package.json" } diff --git a/packages/core/src/blockchain/block-builder.ts b/packages/core/src/blockchain/block-builder.ts index eeefe6a6..ba2b68e5 100644 --- a/packages/core/src/blockchain/block-builder.ts +++ b/packages/core/src/blockchain/block-builder.ts @@ -358,15 +358,12 @@ export const dryRunExtrinsic = async ( mockSignature.set([0xde, 0xad, 0xbe, 0xef]) generic.signature.set(mockSignature) - defaultLogger.info({ call: call.toHuman() }, 'dry_run_call') + logger.debug({ call: call.toHuman() }, 'dry_run_call') return newBlock.call('BlockBuilder_apply_extrinsic', [generic.toHex()]) } - defaultLogger.info( - { call: registry.createType('GenericExtrinsic', hexToU8a(extrinsic)).toHuman() }, - 'dry_run_extrinsic', - ) + logger.debug({ call: registry.createType('GenericExtrinsic', hexToU8a(extrinsic)).toHuman() }, 'dry_run_extrinsic') return newBlock.call('BlockBuilder_apply_extrinsic', [extrinsic]) }