Add logging for favicon requests in lerproxy
- cmd/lerproxy/main.go - Added log statement to record favicon requests using `log.I.F`.
This commit is contained in:
@@ -334,6 +334,7 @@ func setProxy(mapping map[string]string) (h http.Handler, err error) {
|
|||||||
mux.HandleFunc(
|
mux.HandleFunc(
|
||||||
hn+"/favicon.ico",
|
hn+"/favicon.ico",
|
||||||
func(writer http.ResponseWriter, request *http.Request) {
|
func(writer http.ResponseWriter, request *http.Request) {
|
||||||
|
log.I.F("serving favicon to %s", hn)
|
||||||
if _, err = writer.Write(fi); chk.E(err) {
|
if _, err = writer.Write(fi); chk.E(err) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user