debugging for DeepEqual

This commit is contained in:
Martin Geno 2016-02-25 21:38:40 +01:00
parent c1845d038c
commit 41b33a2041

View File

@ -56,11 +56,12 @@ func main() {
elem := reflect.ValueOf(node).Elem() elem := reflect.ValueOf(node).Elem()
field := elem.FieldByName(strings.Title(coll.CollectType)) field := elem.FieldByName(strings.Title(coll.CollectType))
log.Println(field)
log.Println(result)
if !reflect.DeepEqual(field, result) { if !reflect.DeepEqual(field, result) {
log.Printf("Start sendAll after recieve %s", coll.CollectType)
log.Printf("Field: %V", field)
log.Printf("Result: %V", result)
wsserverForNodes.SendAll(node) wsserverForNodes.SendAll(node)
log.Print("End")
} }
field.Set(reflect.ValueOf(result)) field.Set(reflect.ValueOf(result))