Skip to content

Commit 14940ca

Browse files
committed
rpcserver: fix universe ID in logs
1 parent 3768ad0 commit 14940ca

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

rpcserver.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3873,7 +3873,7 @@ func (r *rpcServer) QueryProof(ctx context.Context,
38733873
}
38743874

38753875
rpcsLog.Tracef("[QueryProof]: fetching proof at (universeID=%v, "+
3876-
"leafKey=%x)", universeID, leafKey.UniverseKey())
3876+
"leafKey=%x)", universeID.StringForLog(), leafKey.UniverseKey())
38773877

38783878
// Retrieve proof export config for the given universe.
38793879
syncConfigs, err := r.cfg.UniverseFederation.QuerySyncConfigs(ctx)
@@ -3937,7 +3937,8 @@ func (r *rpcServer) QueryProof(ctx context.Context,
39373937

39383938
rpcsLog.Debugf("[QueryProof]: error querying for "+
39393939
"proof at (universeID=%v, leafKey=%x)",
3940-
universeID, leafKey.UniverseKey())
3940+
universeID.StringForLog(),
3941+
leafKey.UniverseKey())
39413942
return nil, err
39423943
}
39433944

@@ -3953,12 +3954,13 @@ func (r *rpcServer) QueryProof(ctx context.Context,
39533954

39543955
// TODO(roasbeef): query may return multiple proofs, if allow key to
39553956
// not be fully specified
3956-
proof := proofs[0]
3957+
firstProof := proofs[0]
39573958

39583959
rpcsLog.Tracef("[QueryProof]: found proof at (universeID=%v, "+
3959-
"leafKey=%x)", universeID, leafKey.UniverseKey())
3960+
"leafKey=%x)", universeID.StringForLog(),
3961+
leafKey.UniverseKey())
39603962

3961-
return r.marshalUniverseProofLeaf(ctx, req, proof)
3963+
return r.marshalUniverseProofLeaf(ctx, req, firstProof)
39623964
}
39633965

39643966
// unmarshalAssetLeaf unmarshals an asset leaf from the RPC form.

0 commit comments

Comments
 (0)