From ac0af704189c1eb5be86c7b5275cbf7d689fd804 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Mon, 11 Mar 2024 16:03:26 -0400 Subject: [PATCH] log error --- handler/handler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handler/handler.go b/handler/handler.go index a76646f..5afd285 100644 --- a/handler/handler.go +++ b/handler/handler.go @@ -5,6 +5,7 @@ import ( "encoding/json" "errors" "fmt" + "log" "net" "net/http" "regexp" @@ -207,6 +208,7 @@ func (s *Server) Register(rw http.ResponseWriter, req *http.Request) { Title: "could not register dynamic hostname", Status: http.StatusInternalServerError, } + log.Println("dns register failure:", err) rw.WriteHeader(resp.Error.Status) writeResponse(rw, resp) return