dns-api: add debug endpoint
Change-Id: I7e2a6546884b43ad9b377d19b480efd52e905c32
diff --git a/core/dns-api/main.go b/core/dns-api/main.go
index c3d429d..f1f9250 100644
--- a/core/dns-api/main.go
+++ b/core/dns-api/main.go
@@ -2,6 +2,7 @@
import (
"flag"
+ "fmt"
"strings"
)
@@ -23,8 +24,10 @@
if err != nil {
panic(err)
}
- if err := store.Log(); err != nil {
+ if all, err := store.All(); err != nil {
panic(err)
+ } else {
+ fmt.Println(all)
}
server := NewServer(*port, *zone, ds, store, nameserverIP)
server.Start()