manageiq-loggers 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/manageiq/loggers/container.rb +5 -0
- data/lib/manageiq/loggers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec8a029b67b090525d2c085a741332c9b2ebb827
|
4
|
+
data.tar.gz: ee8165c89b34c860f39a667864a74c4e720b83a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9001fc4372ff4c8b7c252c4fae96f07ca62b1a589d13c964e4f1d11dd040b991810c3d7803b1f20ab62ec7351d6593cb1c79129d3e0e9da8ce20c13ccfbefae9
|
7
|
+
data.tar.gz: b6311b6889df0e2ade54766a2467bcacecb0dd4d910c7d098fec9aef0739c4cc718b83887903aa078b50c4f80fb44ed50e282cfb5033c9fae9c34e9feaa3d4bb
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,10 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
-
## [
|
6
|
+
## [0.2.0] - 2019-05-03
|
7
|
+
|
8
|
+
## Added
|
9
|
+
- Log the request id in the container logger if present [(#7)](https://github.com/ManageIQ/manageiq-loggers/pull/7)
|
7
10
|
|
8
11
|
## [0.1.1] - 2019-02-27
|
9
12
|
|
@@ -44,6 +44,7 @@ module ManageIQ
|
|
44
44
|
:service => progname,
|
45
45
|
:level => translate_error(severity),
|
46
46
|
:message => prefix_task_id(msg2str(msg)),
|
47
|
+
:request_id => request_id
|
47
48
|
# :tags => "tags string",
|
48
49
|
}.compact.to_json << "\n"
|
49
50
|
end
|
@@ -61,6 +62,10 @@ module ManageIQ
|
|
61
62
|
def translate_error(level)
|
62
63
|
SEVERITY_MAP[level] || "unknown"
|
63
64
|
end
|
65
|
+
|
66
|
+
def request_id
|
67
|
+
Thread.current[:current_request]&.request_id
|
68
|
+
end
|
64
69
|
end
|
65
70
|
end
|
66
71
|
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
|
+
version: 0.2.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: 2019-
|
11
|
+
date: 2019-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|