td-logger 0.2.6 → 0.2.7

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.
data/ChangeLog CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ == 2011-10-09 version 0.2.7
3
+
4
+ * Access logger checks respond_to?(:to_msgpack) for each values of params
5
+
6
+
2
7
  == 2011-10-06 version 0.2.6
3
8
 
4
9
  * Divided 'uri' column into 'path' and 'host' columns in access logs
@@ -61,7 +61,9 @@ module Agent
61
61
  # merge params
62
62
  req.params.each_pair {|key,val|
63
63
  key = key.to_sym
64
- unless record.has_key?(key) || filter_parameters.include?(key)
64
+ if !record.has_key?(key) &&
65
+ !filter_parameters.include?(key) &&
66
+ val.respond_to?(:to_msgpack)
65
67
  record[key] = val
66
68
  end
67
69
  }
@@ -1,7 +1,7 @@
1
1
  module TreasureData
2
2
  module Logger
3
3
 
4
- VERSION = '0.2.5'
4
+ VERSION = '0.2.7'
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: td-logger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 6
10
- version: 0.2.6
9
+ - 7
10
+ version: 0.2.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sadayuki Furuhashi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-06 00:00:00 +09:00
18
+ date: 2011-10-09 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency