Skip to content
Snippets Groups Projects

Add debug for multilookup bindings bug

Merged Josh Brooks requested to merge XX-4216/MultiLookup into release
Files
2
+ 2
13
@@ -490,6 +490,8 @@ func MultiLookupUD(e2eID int, udContact []byte, cb UdMultiLookupCallback,
return err
}
jww.INFO.Printf("ud.MultiLookupUD(%s, %s)", idList, p.Timeout)
respCh := make(chan lookupResp, len(idList))
for _, uid := range idList {
callback := func(c contact.Contact, err error) {
@@ -518,19 +520,6 @@ func MultiLookupUD(e2eID int, udContact []byte, cb UdMultiLookupCallback,
var errorString string
for numReturned := 0; numReturned < len(idList); numReturned++ {
response := <-respCh
mar, _ := json.Marshal(response)
jww.DEBUG.Printf("MULTILOOKUP DEBUG: \n"+
"response: %s\n"+
"responseJSON: %s\n"+
"response ID: %s\n"+
"response Contact: %s\n"+
"response err: %s\n",
response,
string(mar),
response.Id,
response.Contact.Marshal(),
response.Err)
if response.Err != nil {
failedIDs = append(failedIDs, response.Id)
errorString = errorString +
Loading