fluent-plugin-syslog-tls-with-backoff-test 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/syslog_tls/host_backoff_specs.rb +3 -0
- data/lib/syslog_tls/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: acc0ffec4ad1f9094cff350f3ad476557aa91f077b86ce1bdc39187b5c537e37
|
4
|
+
data.tar.gz: 89285da2148ae4f9d24032275bb1afc78ff0b8bb5363c8af7c437142299b36ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01e086915ce9cab11fd46de400144eb12dd34366a9009d23d372740b3104df67b0d316123c3c3fc6d5e0260aeef08370e71f264458259f6e91d3ad71a9dfc7c1
|
7
|
+
data.tar.gz: 354f905afd96638f35ff1012ed8badc46d49cd666cb67c4bc6f1ec7087d941b0078d13f6331f4630ae599e3ad653d21c1a50b94c2c80fd0ef3884010abb5b8ed
|
@@ -18,6 +18,7 @@ module SyslogTls
|
|
18
18
|
time_passed_since_failure = time_passed_since_failure.round(2)
|
19
19
|
end
|
20
20
|
if time_passed_since_failure == -1
|
21
|
+
pp "time_passed_since_failure is -1"
|
21
22
|
return 1
|
22
23
|
end
|
23
24
|
backoffTime = @baseThreshold ** @retriesToDo
|
@@ -35,11 +36,13 @@ module SyslogTls
|
|
35
36
|
def failtowrite
|
36
37
|
@retriesToDo += 1
|
37
38
|
@failTime = Time.now
|
39
|
+
pp "in failtowrite retries :: " + retriesToDo.to_s + " failTime:: " + failTime.to_s
|
38
40
|
end
|
39
41
|
|
40
42
|
def resetRetries
|
41
43
|
@retriesToDo = 0
|
42
44
|
@failTime = nil
|
45
|
+
pp "in reset retries"
|
43
46
|
end
|
44
47
|
end
|
45
48
|
end
|
data/lib/syslog_tls/version.rb
CHANGED