Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: Force order hash to log as hex string instead of []byte #368

Merged
merged 1 commit into from Aug 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/message_handler.go
Expand Up @@ -144,12 +144,12 @@ func (app *App) HandleMessages(messages []*p2p.Message) error {
// decode it into an order. Append it to the list of orders to validate and
// update peer scores accordingly.
log.WithFields(map[string]interface{}{
"orderHash": acceptedOrderInfo.OrderHash,
"orderHash": acceptedOrderInfo.OrderHash.Hex(),
"from": msg.From.String(),
}).Info("received new valid order from peer")
log.WithFields(map[string]interface{}{
"order": acceptedOrderInfo.SignedOrder,
"orderHash": acceptedOrderInfo.OrderHash,
"orderHash": acceptedOrderInfo.OrderHash.Hex(),
"from": msg.From.String(),
}).Trace("all fields for new valid order received from peer")
// Add stores the message in the database.
Expand Down