rails_semantic_logger 4.0.0.beta1 → 4.0.0.beta2

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
  SHA1:
3
- metadata.gz: 696c9a07884107bd9e5a7270edffd557bbec8f35
4
- data.tar.gz: 93549d6e6705210ae9761921426a28ae780f8525
3
+ metadata.gz: 337fb776c7f211237255259d706dd6ea4adad9ac
4
+ data.tar.gz: 9fe5faef40185300b1f452b24300f6cafc7be69d
5
5
  SHA512:
6
- metadata.gz: 2f3da3aaaf4dd8efa1abe73576709a13158c28cefc0276ae8115004ba2f83bca36ca435c29d5ed19ce355d9c2a92d071780bd0c4fc405a86f1d16a10b7ce7099
7
- data.tar.gz: 894cf27dad2070845c89a15afb2f9f27520f390e62fbccc60fefc6622d3109d9f111d84dc069e91a7767a6994a7581aa09c8bd7da0e624c17d345bf7bd6feb65
6
+ metadata.gz: 4fb7665dec0301ec077d37a538423112606695b7adbba9a118b255b3cc2d1d1de3b07068a0965f78386f62b8e0e086c391b1e6f37309e669fb3e0f447ae6fbb1
7
+ data.tar.gz: 686657245d0c53e62b2668c0e6e24705d62d30c36b55444dadbeffc5878a2b0050c0b163672f13dcdf1b739197b3a41ab86cf7cd7a8431c1636b2452325057d9
@@ -10,13 +10,16 @@ module ActiveRecord
10
10
  name = payload[:name]
11
11
  return if IGNORE_PAYLOAD_NAMES.include?(name)
12
12
 
13
+ log_payload = {
14
+ sql: payload[:sql],
15
+ }
13
16
  log = {
14
17
  message: name,
15
- sql: payload[:sql],
18
+ payload: log_payload,
16
19
  duration: event.duration
17
20
  }
18
21
  unless (payload[:binds] || []).empty?
19
- log[:binds] = binds = {}
22
+ log_payload[:binds] = binds = {}
20
23
  # Changed with Rails 5
21
24
  if Rails.version.to_i >= 5
22
25
  payload[:binds].each do |attr|
@@ -7,9 +7,11 @@ module Rails
7
7
  def started_request_message(request)
8
8
  {
9
9
  message: 'Started',
10
- method: request.request_method,
11
- path: request.filtered_path,
12
- ip: request.ip
10
+ payload: {
11
+ method: request.request_method,
12
+ path: request.filtered_path,
13
+ ip: request.ip
14
+ }
13
15
  }
14
16
  end
15
17
 
@@ -1,3 +1,3 @@
1
1
  module RailsSemanticLogger #:nodoc
2
- VERSION = '4.0.0.beta1'
2
+ VERSION = '4.0.0.beta2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_semantic_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.beta1
4
+ version: 4.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reid Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-05 00:00:00.000000000 Z
11
+ date: 2017-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails