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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/heavylog/middleware.rb +2 -0
- data/lib/heavylog/version.rb +1 -1
- data/lib/heavylog.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c0a001bf84d8cba63f3673c567e6626ccdc09c9627615a302f2159ecfeb8990
|
4
|
+
data.tar.gz: 8baee7cf7ceae53635d21ef0d6f653f56ffcc89d96e4c7cca24aa214d4c47d89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbe667709b38554beacb190476ca00defd9df615133b4d56a9f11fe0d8531790659a2dedca2fdb3c487a389b53a83efbf94719cd5f84ff10d485a4db9e9f9f08
|
7
|
+
data.tar.gz: 4635bd76a5a35089ec0448c3fc3376fc0229772500d12593200c665034ea5c813564fc790127e723beaa8170a6eb3aac0a7609abcd99bde22e09e51f672b56f4
|
data/Gemfile.lock
CHANGED
data/lib/heavylog/middleware.rb
CHANGED
@@ -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)
|
data/lib/heavylog/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2018-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|