commit - b400621c92895f9fc9a466b8f3d01b1e38ddee6d
commit + 1ea72bd3a5731acaf86bae10b3a2ef5933339c25
blob - daa37ccb41ba362865ea32a5996ba893a35915c8
blob + 1f799a1b9eab8510f11a608f744c98b5b3fa9d69
--- cmd/nsd_exporter/nsd_exporter.go
+++ cmd/nsd_exporter/nsd_exporter.go
func handleMetrics(w http.ResponseWriter, req *http.Request) {
stats, err := nlnet.ReadNSDStats()
if err != nil {
- log.Println(err)
+ log.Println("read stats:", err)
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
blob - d525d9f33c1693c0fa969552d519f98b047acb1e
blob + aa191b5d2f0c01c3f34d990e6209a2fb20209d03
--- cmd/unbound_exporter/unbound_exporter.go
+++ cmd/unbound_exporter/unbound_exporter.go
}
func handleMetrics(w http.ResponseWriter, req *http.Request) {
- log.Println("ok here we go...")
stats, err := nlnet.ReadUnboundStats()
if err != nil {
- log.Println(err)
+ log.Println("read stats:", err)
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}