-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use context provided by request for client -> agent RPC
Scoping all API and RPC calls to the same context makes debugging far easier since the request will be logged. Oslo_log tries to extract the context either by explicit passing to the logger or taking it from the thread-local store. The latter does not work since some of the requests enter a queue before being processed by a different thread. Therefore the context is passed in job entering the queue and passed to every log line necessary.
- Loading branch information
1 parent
42f97b3
commit e16c94e
Showing
5 changed files
with
127 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.