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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cd83be88b7e1f5cc827260c02f04f64db89af19
4
- data.tar.gz: 8a435bcc732a626b0459f975fc65efe23c98ffe7
3
+ metadata.gz: ec8a029b67b090525d2c085a741332c9b2ebb827
4
+ data.tar.gz: ee8165c89b34c860f39a667864a74c4e720b83a7
5
5
  SHA512:
6
- metadata.gz: ebf614eab318f4766a254b2fd82c38df59cebb4d7deba9b24dda4cd854d61f74d452fec22f468fca8f1fa2ac9abb53f5fe4a8b0c0703d8e6b72aad179059ad4b
7
- data.tar.gz: 0ad6ed576153d66573e1aefca1e914ad24d70af7fd4f1ca3691fa18e72d5222f534bd1ab1ba080d36855f4397eb0a596c7b412fdc6631191130ae24d5ba3ce69
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
- ## [Unreleased]
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
@@ -1,5 +1,5 @@
1
1
  module Manageiq
2
2
  module Loggers
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
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.1.1
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-02-27 00:00:00.000000000 Z
11
+ date: 2019-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport