evt-message_store-postgres 0.10.2.0 → 0.10.2.1

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: 43dc1d2e0d9fd29f4e7adf7ff5a1d4368ed23814c28d9104ff900c3b47b9e78d
4
- data.tar.gz: 31a09d674ad6950922dee8bd3591e6f6d0d88fc4d98ff5c58e2370de205d9683
3
+ metadata.gz: 4c48681919719258938e00aadec0ef48a416da01574a49f4d429ba339b8d22f3
4
+ data.tar.gz: 4f6e894ebdd0fdcd6afdd6945c45a6dedabc94a90767ce986d9223b27331f70f
5
5
  SHA512:
6
- metadata.gz: d76b454d3243eee33c6ccf3a5ddc16d271335a04d1cc14d2f78fd80852ae537a15e3559ff441d259d9e184e6c51fcf36e480ae316c928071f0858a7d70d6de9c
7
- data.tar.gz: 365543ae783a5c62b612757099ee78a152723f8fc7ac464d2aa024c7b956859fccbe617ee0c3803ffc9064449cc9835d872281bc7d7b4c9cceb6df0d2effc022
6
+ metadata.gz: 0d499eb098258082555ecea242f10059b420db64eed5f1f3feab40c8c1260c45a388ca32afbf604d5dc34ea00e654b1e551a1e660349bd5b4eac526a09507d6a
7
+ data.tar.gz: f7a62f7e4825a792505f90387d1421be88ee676b943956c6bd1da8904ad71a1f1346568e481640c4bcd783982c445638160ad9d3452814111392a5257d08e4d6
@@ -10,7 +10,10 @@ module MessageStore
10
10
  end
11
11
 
12
12
  def write(batch, stream_name, expected_version: nil)
13
- logger.trace(tag: :write) { "Writing batch (Stream Name: #{stream_name}, Number of Messages: #{batch.length}, Expected Version: #{expected_version.inspect})" }
13
+ logger.trace(tag: :write) do
14
+ message_types = batch.map {|message_data| message_data.type }.uniq.join(', ')
15
+ "Writing batch (Stream Name: #{stream_name}, Types: #{message_types}, Number of Messages: #{batch.length}, Expected Version: #{expected_version.inspect})"
16
+ end
14
17
 
15
18
  unless expected_version.nil?
16
19
  expected_version = ExpectedVersion.canonize(expected_version)
@@ -27,18 +30,21 @@ module MessageStore
27
30
  end
28
31
  end
29
32
 
30
- logger.debug(tag: :write) { "Wrote batch (Stream Name: #{stream_name}, Number of Messages: #{batch.length}, Expected Version: #{expected_version.inspect})" }
33
+ logger.debug(tag: :write) do
34
+ message_types = batch.map {|message_data| message_data.type }.uniq.join(', ')
35
+ "Wrote batch (Stream Name: #{stream_name}, Types: #{message_types}, Number of Messages: #{batch.length}, Expected Version: #{expected_version.inspect})"
36
+ end
31
37
 
32
38
  last_position
33
39
  end
34
40
 
35
41
  def write_message_data(message_data, stream_name, expected_version: nil)
36
42
  logger.trace(tag: :write) { "Writing message data (Stream Name: #{stream_name}, Type: #{message_data.type}, Expected Version: #{expected_version.inspect})" }
37
- logger.trace(tags: [:data, :message_data, :write]) { message_data.pretty_inspect }
43
+ logger.trace(tags: [:data, :message_data]) { message_data.pretty_inspect }
38
44
 
39
45
  put.(message_data, stream_name, expected_version: expected_version).tap do
40
46
  logger.debug(tag: :write) { "Wrote message data (Stream Name: #{stream_name}, Type: #{message_data.type}, Expected Version: #{expected_version.inspect})" }
41
- logger.debug(tags: [:data, :message_data, :write]) { message_data.pretty_inspect }
47
+ logger.debug(tags: [:data, :message_data]) { message_data.pretty_inspect }
42
48
  end
43
49
  end
44
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-message_store-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2.0
4
+ version: 0.10.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: scripts
10
10
  cert_chain: []
11
- date: 2018-07-15 00:00:00.000000000 Z
11
+ date: 2018-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-message_store