Skip to content

Commit

Permalink
add more debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
kokizzu committed Feb 28, 2024
1 parent de55903 commit 7d81806
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ func CreateWebServer(p *gcoreprovider.DnsProvider) *webServer {
return
}
requestLog(r).Debugf("returning records count: %d", len(records))
if len(records) > 0 {
requestLog(r).Debug("detail for records: ", records)
}
w.Header().Set(contentTypeHeader, string(mediaTypeVersion1))
w.Header().Set(varyHeader, contentTypeHeader)
err = json.NewEncoder(w).Encode(records)
Expand Down

0 comments on commit 7d81806

Please sign in to comment.