Skip to content

Commit

Permalink
log error
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-soltesz committed Mar 11, 2024
1 parent 7cd953b commit ac0af70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
"log"
"net"
"net/http"
"regexp"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ac0af70

Please sign in to comment.