fix unable to find metricsPath

This commit is contained in:
2026-01-05 14:00:12 +08:00
parent d92a05407c
commit bf75cffb57
+1 -1
View File
@@ -100,7 +100,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))
}