salestation 5.3.3 → 5.4.0
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 +4 -4
- data/lib/salestation/web/request_logger.rb +16 -12
- data/salestation.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd50a9f9fe461dc0d4fe8e4fea4153d1d361eb0f19a4e727ad74f33719fb043b
|
4
|
+
data.tar.gz: 630f442282e5b19ecae156ab11f672ac3e8159ef7256ea6d2de8b1413ff8e7c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c58774b66069bd350a63381752d18dc4dd6e6f374a741730010ed756678f5c6c19df5bb88fcbb4a87a31d2c5ebc319341c603c6dd646416835278723d760a1f5
|
7
|
+
data.tar.gz: 6303f98fdb4269192c70c9123eae98d82821751da0b695425dd24c896af1dcca9f26600d95f9ed58a41a744408aa923acfec09eaaa66214cba634c2be77ab0a6
|
@@ -13,6 +13,8 @@ module Salestation
|
|
13
13
|
HTTP_ACCEPT = 'HTTP_ACCEPT'
|
14
14
|
HTTP_ORIGIN = 'HTTP_ORIGIN'
|
15
15
|
SERVER_NAME = 'SERVER_NAME'
|
16
|
+
GLIA_ACCOUNT_ID = 'HTTP_GLIA_ACCOUNT_ID'
|
17
|
+
GLIA_USER_ID = 'HTTP_GLIA_USER_ID'
|
16
18
|
|
17
19
|
def initialize(app, logger, log_response_body: false, level: :info)
|
18
20
|
@app = app
|
@@ -47,18 +49,20 @@ module Salestation
|
|
47
49
|
|
48
50
|
def response_log(env, status, headers, body, began_at)
|
49
51
|
log = {
|
50
|
-
remote_addr:
|
51
|
-
method:
|
52
|
-
path:
|
53
|
-
query:
|
54
|
-
content_type:
|
55
|
-
http_agent:
|
56
|
-
http_accept:
|
57
|
-
http_origin:
|
58
|
-
server_name:
|
59
|
-
status:
|
60
|
-
duration:
|
61
|
-
|
52
|
+
remote_addr: env[REMOTE_ADDR],
|
53
|
+
method: env[REQUEST_METHOD],
|
54
|
+
path: env[REQUEST_URI],
|
55
|
+
query: env[QUERY_STRING],
|
56
|
+
content_type: env[CONTENT_TYPE],
|
57
|
+
http_agent: env[HTTP_USER_AGENT],
|
58
|
+
http_accept: env[HTTP_ACCEPT],
|
59
|
+
http_origin: env[HTTP_ORIGIN],
|
60
|
+
server_name: env[SERVER_NAME],
|
61
|
+
status: status,
|
62
|
+
duration: duration(from: began_at),
|
63
|
+
glia_account_id: env[GLIA_ACCOUNT_ID],
|
64
|
+
glia_user_id: env[GLIA_USER_ID],
|
65
|
+
headers: headers
|
62
66
|
}
|
63
67
|
|
64
68
|
if status >= 400
|
data/salestation.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salestation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Glia TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
237
|
requirements: []
|
238
|
-
rubygems_version: 3.5.
|
238
|
+
rubygems_version: 3.5.9
|
239
239
|
signing_key:
|
240
240
|
specification_version: 4
|
241
241
|
summary: ''
|