1
0
mirror of https://github.com/chylex/Apache-Prometheus-Exporter.git synced 2025-09-16 11:24:52 +02:00

Compare commits

...

2 Commits

3 changed files with 7 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -25,7 +25,7 @@ checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6"
[[package]] [[package]]
name = "apache_prometheus_exporter" name = "apache_prometheus_exporter"
version = "0.1.0" version = "1.0.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"hyper", "hyper",

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "apache_prometheus_exporter" name = "apache_prometheus_exporter"
version = "0.1.0" version = "1.0.0"
edition = "2021" edition = "2021"
[[bin]] [[bin]]

View File

@@ -161,6 +161,11 @@ impl LogWatcher {
} }
}; };
while let Ok(Some(_)) = self.state.lines.next_line().await {
// There are occasional spurious file creation events, so reading
// from the beginning would read lines that were already counted.
}
continue 'read_loop; continue 'read_loop;
} }
} }