more debugging

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2020-01-14 09:10:21 +01:00
parent b5008763c9
commit 0090269744
4 changed files with 22 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
package traffic
import (
"fmt"
"math/rand"
"time"
@@ -32,7 +33,8 @@ func setup(c *caddy.Controller) error {
return t
})
t.c.WatchCluster("xds_experimental", func(xds.CDSUpdate, error) {})
t.c.WatchCluster("", func(x xds.CDSUpdate, _ error) { fmt.Printf("CDSUpdate: %+v\n", x) })
t.c.WatchEndpoints("", func(x *xds.EDSUpdate, _ error) { fmt.Printf("EDSUpdate: %+v\n", x) })
return nil
}