NAS: Limit HTTP request logging

This commit is contained in:
mkwcat
2024-01-10 08:11:38 -05:00
parent 2b7a83e0ef
commit 0372d7e332

View File

@@ -59,7 +59,6 @@ func handleRequest(w http.ResponseWriter, r *http.Request) {
return
}
logging.Info("NAS", aurora.Yellow(r.Method), aurora.Cyan(r.URL), "via", aurora.Cyan(r.Host), "from", aurora.BrightCyan(r.RemoteAddr))
moduleName := "NAS:" + r.RemoteAddr
// Handle conntest server
@@ -120,6 +119,7 @@ func handleRequest(w http.ResponseWriter, r *http.Request) {
return
}
logging.Info("NAS", aurora.Yellow(r.Method), aurora.Cyan(r.URL), "via", aurora.Cyan(r.Host), "from", aurora.BrightCyan(r.RemoteAddr))
replyHTTPError(w, 404, "404 Not Found")
}