Skip to content

Commit

Permalink
fix: missing newline in log
Browse files Browse the repository at this point in the history
  • Loading branch information
f0wl authored Jun 7, 2022
1 parent aae02aa commit 30333e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion confluencePot.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func logger(r *http.Request) {
logdt := time.Now()
datestr := "[" + logdt.Format("01-02-2006_15:04:05") + "]\n"
remoteAddr := "Remote address: " + r.RemoteAddr
finalStr := datestr + remoteAddr + string(dumpedRequest)
finalStr := datestr + remoteAddr + "\n" + string(dumpedRequest)
color.Blue(datestr)
color.Red(remoteAddr)
fmt.Printf("%s", string(dumpedRequest))
Expand Down

0 comments on commit 30333e6

Please sign in to comment.