From 41b33a20416687ab834cd28b2d41e561d464b4c4 Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Thu, 25 Feb 2016 21:38:40 +0100 Subject: [PATCH] debugging for DeepEqual --- main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index c519dca..3d3e31c 100644 --- a/main.go +++ b/main.go @@ -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))