debugging for DeepEqual

This commit is contained in:
Martin Geno 2016-02-25 21:38:40 +01:00
parent c1845d038c
commit 41b33a2041
1 changed files with 4 additions and 3 deletions

View File

@ -56,11 +56,12 @@ func main() {
elem := reflect.ValueOf(node).Elem()
field := elem.FieldByName(strings.Title(coll.CollectType))
log.Println(field)
log.Println(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)
log.Print("End")
}
field.Set(reflect.ValueOf(result))