Skip to content

Commit

Permalink
Add some more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
parkr committed Apr 12, 2024
1 parent 791e605 commit 767d919
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cmd/ping/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ func main() {
ping.Initialize(os.Getenv("PING_DB"))

allowedHosts := strings.Split(hostAllowlist, ",")
log.Printf("allowing the following hosts: %v", allowedHosts)

log.Printf("base url: %q", pingBaseURL)

http.Handle("/", ping.NewHandler(allowedHosts, pingBaseURL))

Expand Down
1 change: 0 additions & 1 deletion ping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ func TestStats_Success(t *testing.T) {
handler.ServeHTTP(recorder, request)

assertStatusCode(t, recorder, http.StatusOK)

verifyCorsHeaders(t, recorder, pingBaseURL)

allExpectedBodyContents := []string{
Expand Down

0 comments on commit 767d919

Please sign in to comment.