faulty 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/faulty/events/log_listener.rb +4 -2
- data/lib/faulty/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: 6d954b29a9efe4360a4b3ab940afa5f4d9b51642c6244bcbc3875fb7bdf569c7
|
4
|
+
data.tar.gz: b0babca45decf10cf5b0505b301e7c89837385cd21a5727048599f2c9097549d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56c406768fe13d23cec5c56b1c6d25f278f578895c90c01731dda8f3b002f7a2ca1b06b17195cf7f86d358699b7b8fc3c9648c8aa6b0a2d30fd12f7a3a0e92e6
|
7
|
+
data.tar.gz: 0bfed6c5968d43262d4c1e02735339f6a9858a9bbebecbffcb8d9ed36a4bf2ea068fa5c6035675592eaaed3df267815c1e24b73a484f4aa421cac17ab602a805
|
data/CHANGELOG.md
CHANGED
@@ -36,7 +36,7 @@ class Faulty
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def circuit_success(payload)
|
39
|
-
log(:debug, 'Circuit succeeded', payload[:circuit].name
|
39
|
+
log(:debug, 'Circuit succeeded', payload[:circuit].name)
|
40
40
|
end
|
41
41
|
|
42
42
|
def circuit_failure(payload)
|
@@ -81,7 +81,9 @@ class Faulty
|
|
81
81
|
def log(level, msg, action, extra = {})
|
82
82
|
@logger.public_send(level) do
|
83
83
|
extra_str = extra.map { |k, v| "#{k}=#{v}" }.join(' ')
|
84
|
-
"
|
84
|
+
extra_str = " #{extra_str}" unless extra_str.empty?
|
85
|
+
|
86
|
+
"#{msg}: #{action}#{extra_str}"
|
85
87
|
end
|
86
88
|
end
|
87
89
|
end
|
data/lib/faulty/version.rb
CHANGED