evt-message_store 0.8.0.4 → 0.8.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/message_store/read.rb +5 -5
- 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: 065e577d3476a500640a4273d4efb4317d1b1685c017b39570f83385a8dc8c77
|
4
|
+
data.tar.gz: d13028d7a507148bda0102f6085a48172045d6fbd869d03af4686fe9770cbf37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8d42c73d3f7b223b68d25885729c7576c15f7617720c6c82eec2f68207f91bedcc56859724b4d2c9d93a3bd5128e0e1fbe37a0823196225fb0086f7eeb5b663
|
7
|
+
data.tar.gz: 3a445af2490cc86dfab373dae3b2bca6dc5648906acabeda2d5831581521834c0c6bb92812dc744a7f494a75cb8fc3ade84eaf33cc5ba988841216953a4b676b
|
data/lib/message_store/read.rb
CHANGED
@@ -45,23 +45,23 @@ module MessageStore
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def call(&action)
|
48
|
-
logger.trace { "Reading (Stream Name: #{stream_name})" }
|
48
|
+
logger.trace(tag: :read) { "Reading (Stream Name: #{stream_name})" }
|
49
49
|
|
50
50
|
if action.nil?
|
51
51
|
error_message = "Reader must be actuated with a block"
|
52
|
-
logger.error error_message
|
52
|
+
logger.error(tag: :read) { error_message }
|
53
53
|
raise Error, error_message
|
54
54
|
end
|
55
55
|
|
56
56
|
enumerate_message_data(&action)
|
57
57
|
|
58
|
-
logger.info { "Reading completed (Stream Name: #{stream_name})" }
|
58
|
+
logger.info(tag: :read) { "Reading completed (Stream Name: #{stream_name})" }
|
59
59
|
|
60
60
|
return AsyncInvocation::Incorrect
|
61
61
|
end
|
62
62
|
|
63
63
|
def enumerate_message_data(&action)
|
64
|
-
logger.trace { "Enumerating (Stream Name: #{stream_name})" }
|
64
|
+
logger.trace(tag: :read) { "Enumerating (Stream Name: #{stream_name})" }
|
65
65
|
|
66
66
|
message_data = nil
|
67
67
|
|
@@ -73,7 +73,7 @@ module MessageStore
|
|
73
73
|
action.(message_data)
|
74
74
|
end
|
75
75
|
|
76
|
-
logger.debug { "Enumerated (Stream Name: #{stream_name})" }
|
76
|
+
logger.debug(tag: :read) { "Enumerated (Stream Name: #{stream_name})" }
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|