Skip to content

Commit

Permalink
fmt.Sprintf the *http.Response (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooseburgr authored Oct 22, 2023
1 parent dff7f98 commit 34a8955
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ func postToSlack(email, ip string) {

resp, err := http.Post(os.Getenv("SLACK_WEBHOOK_URL"), "application/json",
strings.NewReader(fmt.Sprintf(`{"text":"%s"}`, msg)))

logger.InfoContext(context.Background(), "slack response",
"resp", resp,
"resp", fmt.Sprintf("%+v", resp),
errKey, err)
}

Expand Down

1 comment on commit 34a8955

@vercel
Copy link

@vercel vercel bot commented on 34a8955 Oct 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

plex-utils – ./

kmj.wtf
plexy.vercel.app
plex-utils-git-main-mooseburgr.vercel.app
plex-utils-mooseburgr.vercel.app

Please sign in to comment.