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>
This commit is contained in:
parent
257c7b4f62
commit
61a5198255
5
releasenotes/notes/fix-missing-request-id-in-log.yaml
Normal file
5
releasenotes/notes/fix-missing-request-id-in-log.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fix missing request-id in Trove services logs.
|
||||||
|
`Story 2010451 <https://storyboard.openstack.org/#!/story/2010451>`__
|
@ -62,6 +62,7 @@ class TroveContext(context.RequestContext):
|
|||||||
return parent_dict
|
return parent_dict
|
||||||
|
|
||||||
def update_store(self):
|
def update_store(self):
|
||||||
|
super(TroveContext, self).update_store()
|
||||||
local.store.context = self
|
local.store.context = self
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user