epilog 0.3.0 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab9c7483e1069a23f488152643f2bfb8bd2598956314b8735ad220acec8c4472
4
- data.tar.gz: 80e15c598d75805161137278ec98ed3a134526e006a9c26a7e6f1dcbb2c4025d
3
+ metadata.gz: 5fd0a8c3e9e8399b9f1e5f7c16a3de10b61a46274a0490ac1f39ed168b5812b8
4
+ data.tar.gz: f83444e51908ca573918cfc5e8fd9515ccb1f4275aa80b17fa1da66c0593bf15
5
5
  SHA512:
6
- metadata.gz: 107b41212249b6abf84deb5a13460f4cfe3ee7e510c311b4bc1907528947fc85ef5fa35d030c2e79607583584ecbc6d4466d3b91ff12992c3fc202e55a5a49ab
7
- data.tar.gz: b2c35471c0b4241faeba4551716f9c4393ccdf717ff411c7d6f4f414e4a6949d0f2a3aa93347ddaf244ea4096eea3ba4cf04b6dd47867a8eb50a3aa48c6bbc66
6
+ metadata.gz: ff61b605c231ebd750c5e3ce1909c498afe203824fbfd0c70f061e71ffdb7ec7e02e0bc6a33e2ee44f4043d27e2bd14befbc23ad33c6f464d65910dedc200b3e
7
+ data.tar.gz: 750683aa14e5c0c965088af4bcaf8de2180f58156e44a074d7ca4382275eaa6db1e12c02cc6afcce5dfa8122ceecb75a892876b4cad8144c0dc111c2b868843e
data/CHANGLOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.1
4
+
5
+ - Add context to request log [#10](https://github.com/machinima/epilog/pull/10)
6
+
3
7
  ## 0.3
4
8
 
5
9
  - Update development dependencies [#1](https://github.com/machinima/epilog/pull/1)
@@ -8,10 +8,10 @@ module Epilog
8
8
 
9
9
  def request_received(event)
10
10
  info do
11
- {
11
+ event.payload[:context].merge(
12
12
  message: "#{request_string(event)} started",
13
13
  request: request_hash(event)
14
- }
14
+ )
15
15
  end
16
16
  end
17
17
 
@@ -10,7 +10,6 @@ module Epilog
10
10
  ensure
11
11
  payload[:response] = response
12
12
  payload[:metrics] = epilog_metrics
13
- payload[:context] = epilog_context
14
13
  end
15
14
  end
16
15
  end
@@ -30,7 +29,8 @@ module Epilog
30
29
  request: request,
31
30
  response: response,
32
31
  controller: self.class.name,
33
- action: action_name
32
+ action: action_name,
33
+ context: epilog_context
34
34
  }
35
35
  end
36
36
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Epilog
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epilog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Howard