manageiq-loggers 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -2
- data/lib/manageiq/loggers/base.rb +2 -1
- data/lib/manageiq/loggers/cloud_watch.rb +1 -0
- data/lib/manageiq/loggers/version.rb +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: d411d75a73f5d47de3de8080101e168c99265168eb34beef036a173955aa9823
|
4
|
+
data.tar.gz: '06163649ad33e5964c5d06f3ab369a1fa0e2fd9cf08d71ca70d0a14da6978420'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84de0b21346b0bc7d805ee5987e6575eee4e7f2b405dea90454d5f41443b0b9ec80282fad209c26b3dbd63f9d69c18159eae5e65b1aac7f3722adf1685da6358
|
7
|
+
data.tar.gz: 52d917bf352a7df54e4993d043a7b9dd1f53e79f4c55456759dc3e850f9d66e30c49fb40cfa90e5b293099a00e03600cbb6ff11e0cc9ed82370a7ee94f4d592e
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [1.0.1] - 2021-01-05
|
9
|
+
### Fixed
|
10
|
+
- Fix require issue when used with Rails 7 [(#42)](https://github.com/ManageIQ/manageiq-loggers/pull/42)
|
11
|
+
- Check if the global is defined before trying to use it for Ruby 3 support [(#41)](https://github.com/ManageIQ/manageiq-loggers/pull/41)
|
12
|
+
|
8
13
|
## [1.0.0] - 2021-11-16
|
9
14
|
### Removed
|
10
15
|
- **BREAKING** Remove support for Ruby 2.4 and 2.5 [(#40)](https://github.com/ManageIQ/manageiq-loggers/pull/40)
|
@@ -70,8 +75,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
70
75
|
|
71
76
|
## [0.1.0] - 2019-01-08
|
72
77
|
|
73
|
-
[Unreleased]: https://github.com/ManageIQ/manageiq-loggers/compare/v1.0.
|
74
|
-
[0.
|
78
|
+
[Unreleased]: https://github.com/ManageIQ/manageiq-loggers/compare/v1.0.1...master
|
79
|
+
[1.0.1]: https://github.com/ManageIQ/manageiq-loggers/compare/v1.0.0...v1.0.1
|
80
|
+
[1.0.0]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.8.0...v1.0.0
|
75
81
|
[0.8.0]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.7.0...v0.8.0
|
76
82
|
[0.7.0]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.6.0...v0.7.0
|
77
83
|
[0.6.0]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.5.0...v0.6.0
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'logger'
|
2
|
+
require 'active_support'
|
2
3
|
require 'active_support/core_ext/object/try'
|
3
4
|
require 'active_support/core_ext/numeric/bytes'
|
4
5
|
require 'active_support/core_ext/string'
|
@@ -151,7 +152,7 @@ module ManageIQ
|
|
151
152
|
|
152
153
|
def prefix_task_id(msg)
|
153
154
|
# Add task id to the message if a task is currently being worked on.
|
154
|
-
if (task_id = (Thread.current["tracking_label"] || $_miq_worker_current_msg.try(:task_id)))
|
155
|
+
if (task_id = (Thread.current["tracking_label"] || (defined?($_miq_worker_current_msg) && $_miq_worker_current_msg.try(:task_id))))
|
155
156
|
prefix = "Q-task_id([#{task_id}])"
|
156
157
|
msg = "#{prefix} #{msg}" unless msg.include?(prefix)
|
157
158
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
- !ruby/object:Gem::Version
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
|
-
rubygems_version: 3.
|
172
|
+
rubygems_version: 3.1.6
|
173
173
|
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Loggers for ManageIQ projects
|