Commit 853803ed authored by suyanlong's avatar suyanlong

add log print

parent daf81456
......@@ -170,7 +170,7 @@ func (p *Paracross) Initialize(configPath string, ID string, extra []byte) error
} else {
p.execAddress = address.ExecAddress(p.title + execer)
}
p.logger.Info("print execAddress", "execAddress", p.execAddress)
p.logger.Info("print execAddress", "execAddress ", p.execAddress)
config33 = fmt.Sprintf(config33, p.title, chain33Config.Chain33.Addr)
p.logger.Info(config33)
......@@ -731,7 +731,8 @@ func (p *Paracross) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) {
tx.Sign(types33.SECP256K1, p.privateKey)
ret, err := p.grpcClient.SendTransaction(p.ctx, tx)
if err != nil {
p.logger.Error("SendTransaction ", "hash", common.HashHex(tx.Hash()), "error", err)
txTmp, _ := types33.PBToJSON(tx)
p.logger.Error("SendTransaction ", "hash", common.HashHex(tx.Hash()), "error", err, "tx", util.FormatJSON(txTmp))
return nil, err
}
ibtpRes.Result = ibtp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment