fixed unable to find metricsPath

This commit is contained in:
2026-01-05 14:02:45 +08:00
parent aa5519b5e3
commit 3a4d184604
+1 -1
View File
@@ -101,7 +101,7 @@ func init() {
func loggingMiddleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
start := time.Now()
metricsPath := os.Getenv("METRICS_PATH")
if r.URL.Path != metricsPath {
helper.LogInfo(fmt.Sprintf("INFO: Started %s %s", r.Method, r.URL.Path))
}