htlcswitch/circuit_map: prevent spewing secp curve in trace

Replaces the log statement in CommitCircuits so that
it prints the circuit key of the incoming channel. This way
we avoid spewing the secp curve stored in the ErrorEncrypter.
This commit is contained in:
Conner Fromknecht 2018-07-27 02:22:48 -07:00
parent 648d6442d6
commit 0372bf9319
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -495,8 +495,13 @@ func (cm *circuitMap) LookupByPaymentHash(hash [32]byte) []*PaymentCircuit {
func (cm *circuitMap) CommitCircuits(circuits ...*PaymentCircuit) (
*CircuitFwdActions, error) {
inKeys := make([]CircuitKey, 0, len(circuits))
for _, circuit := range circuits {
inKeys = append(inKeys, circuit.Incoming)
}
log.Tracef("Committing fresh circuits: %v", newLogClosure(func() string {
return spew.Sdump(circuits)
return spew.Sdump(inKeys)
}))
actions := &CircuitFwdActions{}