fixed unable to find metricsPath
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user