manageiq-loggers 0.4.2 → 0.5.0

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: 74435aa6cde9e117c8218ff4551d000ae7da79fdd7c986178b7d409618067312
4
- data.tar.gz: 50871a5265efcd9a2661a47e3c49ea20639a750a66ef0efe95365fc67fd1be71
3
+ metadata.gz: 2dcf2285622bf4c8e99e5f51bfa285cd730ad63ecf2c99ba3d415935b9b4232b
4
+ data.tar.gz: 40f8ea813b609c2c4c51da5119d8d5d941ddc06983d677c28a97d965ec7174b0
5
5
  SHA512:
6
- metadata.gz: f1248dc1c32419ec042508e9de699ad868ccfd50f8c3ee190981fb8ad75b65f492b057fdbba904eb4636a4bd743046042b8cae3f489c9c486fbae455db17bf4d
7
- data.tar.gz: 3b7ebb8171a01c5ebf04f4291f8be447d599eb8d421d17231e62036c61d01d0ffe1bd374a14a3dc4c135113786983cb9a7438e207123b2e97d50abedd2c00b4c
6
+ metadata.gz: 8548fb479e0c8a465d6afc6b97dae2fbd5b5079a7fbfa9112e59ff5b003de6f34e35f748babf67c7a8828cb45d2143237a5f0b6439d37c0ae2cc1959398f3128
7
+ data.tar.gz: e217e0699b90729596661de7a1f9c751560305cb7509f80f8c23ebc487a74ca2c1e40070f272e016872593e5a441888515a4adf6fea00fcee7a99ae14b5fb988
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.5.0] - 2020-03-18
9
+ ### Changed
10
+ - Deprecate Thread.current[:current_request]&.request_id in favor of Thread.current[:request_id] [(#17)](https://github.com/ManageIQ/manageiq-loggers/pull/17)
11
+
8
12
  ## [0.4.2] - 2020-01-14
9
13
  ### Fixed
10
14
  - Revert "Change CloudWatch log_group to be the namespace if it exists" [(#16)](https://github.com/ManageIQ/manageiq-loggers/pull/16)
@@ -33,7 +37,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
33
37
 
34
38
  ## [0.1.0] - 2019-01-08
35
39
 
36
- [Unreleased]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.4.2...master
40
+ [Unreleased]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.5.0...master
41
+ [0.5.0]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.4.2...v0.5.0
37
42
  [0.4.2]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.4.1...v0.4.2
38
43
  [0.4.1]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.4.0...v0.4.1
39
44
  [0.4.0]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.3.0...v0.4.0
@@ -64,7 +64,11 @@ module ManageIQ
64
64
  end
65
65
 
66
66
  def request_id
67
- Thread.current[:current_request]&.request_id
67
+ if Thread.current[:current_request]&.request_id
68
+ ActiveSupport::Deprecation.warn("Usage of `Thread.current[:current_request]&.request_id` will be deprecated in version 0.5.0. Please switch to `Thread.current[:request_id]` to log request_id automatically.")
69
+ end
70
+
71
+ Thread.current[:current_request]&.request_id || Thread.current[:request_id]
68
72
  end
69
73
  end
70
74
  end
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Loggers
3
- VERSION = "0.4.2".freeze
3
+ VERSION = "0.5.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-loggers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Authors
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-14 00:00:00.000000000 Z
11
+ date: 2020-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport