logstash-input-mongoprofile 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58de1f30a6699c3dfee6732536168bfa2377f157
4
- data.tar.gz: a9cfab9bf5d796aec988f8c128a6486911d0868f
3
+ metadata.gz: 77930a374857fbc1c7dae2ef304e39010668aa12
4
+ data.tar.gz: 744d70085380a289411ea02d7811a82672979daf
5
5
  SHA512:
6
- metadata.gz: c8d3d04fdfd48355829a861ca625cb60355b12299586c31afbcb131ee67eba1f5b88c64db0e45c0a1d8e09f4fcde79bb40725fe408cfc7105a6942e0d0e1c923
7
- data.tar.gz: 4caffb900ac1b8072fc8367f0e566f993e8f0a63b310002eba6341e2b57d71eb3f11d7138be42f954cc00a7bba6897ec8bd52d1c45890bebc4d9439af05c450a
6
+ metadata.gz: e3cd5ecfa4535babdf1f33bf5bbc19973a1a9deba9457e8188304347c09d500670449b7c741853286f41fcb841e6c4586c1c9124cb04ddcc312e5e92b52b0440
7
+ data.tar.gz: a971b5cd2a4b8b42a13291c2c3f13a82826a3b824b44a14acdd7ecb9f4f39108fb78813cd6b474fc9489548531fc7835e9abad24b08894776068a6e1279ca4e8
@@ -116,14 +116,17 @@ class ProfileCollection
116
116
  end
117
117
 
118
118
  class DocumentParser
119
- def initialize(host)
119
+ def initialize(host, logger)
120
120
  @host = host
121
+ @logger = logger
121
122
  end
122
123
 
123
124
  def parse(document)
125
+ @logger.info('Start documents parsing')
124
126
  event = LogStash::Event.new('host' => @host)
125
127
 
126
128
  document.each do |key, value|
129
+ @logger.info("Try set event field key: #{key} value: #{value}")
127
130
  event.set(key, value)
128
131
  end
129
132
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-mongoprofile'
3
- s.version = '0.1.9'
3
+ s.version = '0.1.10'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = 'MongoDB system.profile input plugin'
6
6
  s.description = 'MongoDB system.profile input plugin'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-mongoprofile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Antonov