我无法在 Hyperledger Fabric 1.4 上的 nodejs 中读取我的链码日志我正在尝试通过以下方式读取日志:
`docker logs -f <<chaincode_container_instance>>`
但我能看到的唯一日志是:
`async instantiate(ctx) {
console.log('Instantiate the contract');
}`
这里是:
` > fabric-chaincode-node start "--peer.address" "peer0.org1.example.com:7052"
(node:16) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
Command succeeded
Instantiate the contract`
但不是我的交易日志:
`async createDocument(ctx, documentId, name, hash, owner, sector, timeStamp) {
console.log("id: "+ documentId+"timeStamp: "+ timeStamp);
...
<<REST OF THE CODE>>`
并且事务执行没问题,因为我可以在 couchdb 上看到一个新寄存器。