aws-logs 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/aws_logs/tail.rb +4 -1
- data/lib/aws_logs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0759793548df8b9310656546548321c91d45d2cb7b26baf99a90f4344a6de4aa'
|
4
|
+
data.tar.gz: 5eb4f2cfa33a74102f29c0e88b4174d5686b99c496a4f8eb1ed60506d530bcf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 398fc1c1bd9617fd6a55be36807e8e65d80d55e66d7c7bad0a04b2eb33de592a49591a16b58c9a67bcc7c173346a30b6ef070a6fa4cacda5bb60947aeadecdff
|
7
|
+
data.tar.gz: 4bec6913762543ddef4f910f1e35ebe7bdc5cfd4986b0bb5978b7334871e3d5329ac47f4f5fa5f7b06024bbc65bcc10eccd965907035f042bed5de85b5870fc4
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.3.0]
|
7
|
+
- display final logs upon stop_follow!
|
8
|
+
|
6
9
|
## [0.2.0]
|
7
10
|
- add stop_follow! method
|
8
11
|
- friendly error message when log not found
|
data/lib/aws_logs/tail.rb
CHANGED
@@ -36,13 +36,16 @@ module AwsLogs
|
|
36
36
|
end
|
37
37
|
|
38
38
|
since, now = initial_since, current_now
|
39
|
-
|
39
|
+
until end_loop?
|
40
40
|
refresh_events(since, now)
|
41
41
|
display
|
42
42
|
since, now = now, current_now
|
43
43
|
loop_count!
|
44
44
|
sleep 5 if @follow && !@@end_loop_signal && !ENV["AWS_LOGS_TEST"]
|
45
45
|
end
|
46
|
+
# Refresh and display a final time in case the end_loop gets interrupted by stop_follow!
|
47
|
+
refresh_events(since, now)
|
48
|
+
display
|
46
49
|
rescue Aws::CloudWatchLogs::Errors::ResourceNotFoundException => e
|
47
50
|
puts "ERROR: #{e.class}: #{e.message}".color(:red)
|
48
51
|
puts "Log group #{@log_group_name} not found."
|
data/lib/aws_logs/version.rb
CHANGED