Skip to content

Commit

Permalink
fix logging level (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc authored Nov 24, 2023
1 parent 5a9e5d7 commit 0666363
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions packages/chopsticks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
7 changes: 2 additions & 5 deletions packages/core/src/blockchain/block-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}

Expand Down

0 comments on commit 0666363

Please sign in to comment.