log the requested path through 'test endpoint'

This commit is contained in:
Michael Quigley 2022-12-14 12:30:59 -05:00
parent d1a0afd6a0
commit 0b9d61b961
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -54,7 +54,7 @@ func (cmd *testEndpointCommand) run(_ *cobra.Command, _ []string) {
}
func (cmd *testEndpointCommand) serveIndex(w http.ResponseWriter, r *http.Request) {
logrus.Infof("%v {%v} -> /index.gohtml", r.RemoteAddr, r.Host)
logrus.Infof("%v {%v} | %v -> /index.gohtml", r.RemoteAddr, r.Host, r.RequestURI)
if err := cmd.t.Execute(w, newEndpointData(r)); err != nil {
log.Error(err)
}