Skip to content

Commit 807403b

Browse files
committed
output Fluentd version
Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
1 parent f5110da commit 807403b

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Check /path/to/pos.
177177
Done duplication check for 2 PosEntries.
178178
Done collection ratio check for 2 files.
179179
180-
All check completed.
180+
All check completed. (Fluentd v1.15.0)
181181
There is no anomalies.
182182
```
183183

@@ -186,6 +186,7 @@ This means:
186186
* The command has checked `/path/to/pos`.
187187
* The command has checked 2 pos entries for duplication check.
188188
* The command has checked 2 files for collection ratio check.
189+
* It is detected that the version of your Fluentd is v1.15.0.
189190
* There is no anomalies.
190191

191192
#### Pos duplication found
@@ -198,7 +199,7 @@ Duplicated paths:
198199
/test/foo.log
199200
Done collection ratio check for 0 files.
200201
201-
All check completed.
202+
All check completed. (Fluentd v1.15.0)
202203
Some anomalies are found. Please check the logs for details.
203204
If you have any questions or issues, please report them to the following:
204205
Fluentd Q&A: https://github.com/fluent/fluentd/discussions/categories/q-a
@@ -226,7 +227,7 @@ Filepaths with too low collection ratio (threshold: 0.5):
226227
/test/bar.log (ratio: 0.2)
227228
/test/foo.log (ratio: 0.1)
228229
229-
All check completed.
230+
All check completed. (Fluentd v1.15.0)
230231
Some anomalies are found. Please check the logs for details.
231232
If you have any questions or issues, please report them to the following:
232233
Fluentd Q&A: https://github.com/fluent/fluentd/discussions/categories/q-a

lib/fluent/tail_checker/tail_check.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# limitations under the License.
1616

1717
require "optparse"
18+
require "fluent/version"
1819

1920
require_relative "pos"
2021
require_relative "duplicated_pos_checker"
@@ -98,7 +99,7 @@ def check
9899
succeeded = CollectionRatioChecker.new(pos_file, @follow_inodes, @collection_ratio_threshold).check && succeeded
99100
end
100101

101-
puts "\nAll check completed."
102+
puts "\nAll check completed. (Fluentd v#{Fluent::VERSION})"
102103

103104
unless succeeded
104105
puts "Some anomalies are found. Please check the logs for details."

0 commit comments

Comments
 (0)