semian 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b31af83f6a9733b9a9a4ce8743aa6f0f8e12a02be8ea93769a3104793ca5403
4
- data.tar.gz: 387524ab30d95ccf7f7b0fac73fdabf8af3dbfb34b61ec28778a90abc7230a9a
3
+ metadata.gz: b867496c18269ed172e3d5644e6534b043a7441c34a3ec4a619534a28b03f11d
4
+ data.tar.gz: '09819744aa4b11f204a275ee594da9bf3e0d3b66a568ae7aef6d40e6605d5f0d'
5
5
  SHA512:
6
- metadata.gz: bda9c43cd95f0d6ed7c0cda4507ed855a5c4c06cc7586d705da1c6f6660077cc1af14e52a7f80f62b6a376da67f458fc119899aa56062c643a0decac4194ce65
7
- data.tar.gz: 8e9cacebf59371bf6b683dbf64c348ec654ebfdc8bf47a4b6f2f6ac328c39911fe2b3477adccd4004ff3eeb14798ac9528cad3d7c0c4501c51cebcf69c175929
6
+ metadata.gz: 5b0599ce2ebc8c86212f455b3383cdb2307015d84af592e8ce6971d60da57886706a02745121bd0df3249342d5ac6113ab87bc6bcebea2391dd594b2001767b6
7
+ data.tar.gz: 7432a79d19cc7583f6152355e851922faa19668349f05ff52e78f78cab245079d2f3da964b8dc162522b98f88391971adafcf8baee3559edaddfcc6da8e1bd39
data/lib/semian.rb CHANGED
@@ -143,7 +143,8 @@ module Semian
143
143
  #
144
144
  # +timeout+: Default timeout in seconds. Default 0. (bulkhead)
145
145
  #
146
- # +error_threshold+: The number of errors that will trigger the circuit opening. (circuit breaker required)
146
+ # +error_threshold+: The amount of errors that must happen within error_timeout amount of time to open
147
+ # the circuit. (circuit breaker required)
147
148
  #
148
149
  # +error_timeout+: The duration in seconds since the last error after which the error count is reset to 0.
149
150
  # (circuit breaker required)
@@ -136,6 +136,10 @@ module Semian
136
136
  str << " success_count_threshold=#{@success_count_threshold} error_count_threshold=#{@error_count_threshold}"
137
137
  str << " error_timeout=#{@error_timeout} error_last_at=\"#{@errors.last}\""
138
138
  str << " name=\"#{@name}\""
139
+ if new_state == :open && @last_error
140
+ str << " last_error_message=#{@last_error.message.inspect}"
141
+ end
142
+
139
143
  Semian.logger.info(str)
140
144
  end
141
145
 
@@ -1,3 +1,3 @@
1
1
  module Semian
2
- VERSION = '0.11.2'
2
+ VERSION = '0.11.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Francis
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-01-27 00:00:00.000000000 Z
13
+ date: 2021-02-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake-compiler