diff options
author | Ha Minh Cong <conghm1@viettel.com.vn> | 2022-11-27 23:26:49 +0700 |
---|---|---|
committer | Cong Ha Minh <conghm1@viettel.com.vn> | 2022-11-28 15:31:55 +0700 |
commit | 61a5198255a76fce0582e22510ef29b751211e28 (patch) | |
tree | 5529aa6f7bd0e9405577bedc9c72f4eb0994703e | |
parent | 257c7b4f62a272043824892208521b0920e85b7c (diff) | |
download | trove-61a5198255a76fce0582e22510ef29b751211e28.tar.gz |
Fix the missing log request-id
This PS ensure oslo Context.update_store method is called, to
ensure that thread-local context object is updated before
Trove service render log
Story: 2010451
Task: 46951
Change-Id: I5258853aed33cbcd26a5b6d68a5e5a4b9aa1fd48
Signed-off-by: Ha Minh Cong <conghm1@viettel.com.vn>
-rw-r--r-- | releasenotes/notes/fix-missing-request-id-in-log.yaml | 5 | ||||
-rw-r--r-- | trove/common/context.py | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/releasenotes/notes/fix-missing-request-id-in-log.yaml b/releasenotes/notes/fix-missing-request-id-in-log.yaml new file mode 100644 index 00000000..2b62250b --- /dev/null +++ b/releasenotes/notes/fix-missing-request-id-in-log.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fix missing request-id in Trove services logs. + `Story 2010451 <https://storyboard.openstack.org/#!/story/2010451>`__ diff --git a/trove/common/context.py b/trove/common/context.py index 6ddc3a6e..bf9c8e59 100644 --- a/trove/common/context.py +++ b/trove/common/context.py @@ -62,6 +62,7 @@ class TroveContext(context.RequestContext): return parent_dict def update_store(self): + super(TroveContext, self).update_store() local.store.context = self @classmethod |