Include overlay diagnostics in report JSON

This commit is contained in:
Adam Harrison committed 2015-10-13 17:04:56 +01:00
1 parent ddfc8c2fa4
commit eaf1f7cc13
5 files changed
+94 -1

No files matched your search

+8
View File
@@ -35,6 +35,14 @@ func (osw *OverlaySwitch) AddFeaturesTo(features map[string]string) {
features["Overlays"] = strings.Join(osw.overlayNames, " ")
}
func (osw *OverlaySwitch) Diagnostics() interface{} {
diagnostics := make(map[string]interface{})
for name, overlay := range osw.overlays {
diagnostics[name] = overlay.Diagnostics()
}
return diagnostics
}
func (osw *OverlaySwitch) InvalidateRoutes() {
for _, overlay := range osw.overlays {
overlay.InvalidateRoutes()