Skip to content

Commit

Permalink
Log identity as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed May 30, 2024
1 parent 2d5fada commit e13acce
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions mixing/mixpool/mixpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -849,20 +849,21 @@ func (p *Pool) AcceptMessage(msg mixing.Message) (accepted []mixing.Message, err
if err != nil {
switch msg.(type) {
case *wire.MsgMixPairReq:
log.Debugf("Rejected message %T %v: %v", msg, hash, err)
log.Debugf("Rejected message %T %v by %x: %v",
msg, hash, msg.Pub(), err)
default:
log.Debugf("Rejected message %T %v (session %x run %d): %v",
msg, hash, msg.Sid(), msg.GetRun(), err)
log.Debugf("Rejected message %T %v (session %x run %d) by %x: %v",
msg, hash, msg.Sid(), msg.GetRun(), msg.Pub(), err)
}
return
}
for _, msg := range accepted {
switch msg.(type) {
case *wire.MsgMixPairReq:
log.Debugf("Accepted message %T %v", msg, hash)
log.Debugf("Accepted message %T %v by %x", msg, hash, msg.Pub())
default:
log.Debugf("Accepted message %T %v (session %x run %d)",
msg, hash, msg.Sid(), msg.GetRun())
log.Debugf("Accepted message %T %v (session %x run %d) by %x",
msg, hash, msg.Sid(), msg.GetRun(), msg.Pub())
}
}
}()
Expand Down

0 comments on commit e13acce

Please sign in to comment.