Thibault bui Koechlin 5 년 전
부모
커밋
ae46c0b0c7
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      pkg/acquisition/file_reader.go

+ 2 - 3
pkg/acquisition/file_reader.go

@@ -257,9 +257,8 @@ LOOP:
 			if line.Text == "" { //skip empty lines
 				continue
 			}
-			if ctx.Profiling {
-				ReaderHits.With(prometheus.Labels{"source": ctx.Filename}).Inc()
-			}
+			ReaderHits.With(prometheus.Labels{"source": ctx.Filename}).Inc()
+
 			l.Raw = line.Text
 			l.Labels = ctx.Labels
 			l.Time = line.Time