heavylog 0.0.4 → 0.0.5

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: 046ea53ae68c23ebc91497152eb0b28cf11f9ec905d43f9e51c08172f3101e35
4
- data.tar.gz: badb4520fff1ab77a3c116709b94d7d49d2d37db263ab44963383b0b6c398780
3
+ metadata.gz: 3c0a001bf84d8cba63f3673c567e6626ccdc09c9627615a302f2159ecfeb8990
4
+ data.tar.gz: 8baee7cf7ceae53635d21ef0d6f653f56ffcc89d96e4c7cca24aa214d4c47d89
5
5
  SHA512:
6
- metadata.gz: c20def65cce8d2a541a5687aced324e06800e1871a803e0c559b5c68dd0c489ff0c02da09b27041c2b58a3103550688601fe8febe0db9bd34db90a8314148a96
7
- data.tar.gz: df4e5dd9b3422083c635aea1a8afffafbbf6125946ab7dc0bb8e16a721a70738d47e629db395b8a41690ad5af52f6ed040a95cc75497055bf9bb31c9dc0981d0
6
+ metadata.gz: fbe667709b38554beacb190476ca00defd9df615133b4d56a9f11fe0d8531790659a2dedca2fdb3c487a389b53a83efbf94719cd5f84ff10d485a4db9e9f9f08
7
+ data.tar.gz: 4635bd76a5a35089ec0448c3fc3376fc0229772500d12593200c665034ea5c813564fc790127e723beaa8170a6eb3aac0a7609abcd99bde22e09e51f672b56f4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- heavylog (0.0.4)
4
+ heavylog (0.0.5)
5
5
  actionpack (>= 5)
6
6
  activesupport (>= 5)
7
7
  railties (>= 5)
@@ -13,6 +13,8 @@ module Heavylog
13
13
  if !ignore
14
14
  request = ActionDispatch::Request.new(env)
15
15
  RequestStore.store[:heavylog_request_id] = request.uuid
16
+ RequestStore.store[:heavylog_request_start] = Time.now.iso8601
17
+ RequestStore.store[:heavylog_request_ip] = request.ip
16
18
  end
17
19
 
18
20
  @app.call(env)
@@ -1,3 +1,3 @@
1
1
  module Heavylog
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/heavylog.rb CHANGED
@@ -83,6 +83,8 @@ module Heavylog
83
83
 
84
84
  request = {
85
85
  request_id: RequestStore.store[:heavylog_request_id],
86
+ request_start: RequestStore.store[:heavylog_request_start],
87
+ ip: RequestStore.store[:heavylog_request_ip],
86
88
  messages: buffer.string.dup
87
89
  }.merge(RequestStore.store[:heavylog_request_data] || {})
88
90
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heavylog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristjan Rang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-03 00:00:00.000000000 Z
11
+ date: 2018-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler