From 61a5198255a76fce0582e22510ef29b751211e28 Mon Sep 17 00:00:00 2001 From: Ha Minh Cong Date: Sun, 27 Nov 2022 23:26:49 +0700 Subject: 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 --- releasenotes/notes/fix-missing-request-id-in-log.yaml | 5 +++++ trove/common/context.py | 1 + 2 files changed, 6 insertions(+) create mode 100644 releasenotes/notes/fix-missing-request-id-in-log.yaml 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 `__ 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 -- cgit v1.2.1