Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/3.0.8 request id logging #1057

Merged
merged 3 commits into from
Aug 10, 2018
Merged

Release/3.0.8 request id logging #1057

merged 3 commits into from
Aug 10, 2018

Conversation

alikins
Copy link
Contributor

@alikins alikins commented Aug 10, 2018

[backport of https://github.com//pull/1034 to release/3.0.8]

Add 'request_id' and json formatting to galaxy logs

This adds a log_request_id.filters.RequestIDFilter log filter
to the console/stdout log handlers. The filter adds the
request-id to log records so they can be used by the formatters.

Also add and setup a 'jog.JogFormatter' for formatting normal
python log entries as JSON.

Add RequestIdMiddleware to MIDDLEWARE_CLASSES

This enables adding or tracking a X-Request-Id per
request that can be used in logging.

https://github.com/dabapps/django-log-request-id

alikins and others added 3 commits August 10, 2018 12:45
This enables adding or tracking a X-Request-Id per
request that can be used in logging.

https://github.com/dabapps/django-log-request-id

Add 'django-log-request-id' and 'jog' to requirements

Add RequestIdMiddleware to MIDDLEWARE_CLASSES

This adds a log_request_id.filters.RequestIDFilter log filter
to the console/stdout log handlers. The filter adds the
request-id to log records so they can be used by the formatters.

Also add and setup a 'jog.JogFormatter' for formatting normal
python log entries as JSON.

(cherry picked from commit 37ad71e)
(cherry picked from commit 9d924e1)
(cherry picked from commit c41f9b1)
@alikins alikins requested a review from chouseknecht August 10, 2018 17:30
@chouseknecht chouseknecht merged commit bf9f135 into ansible:release/3.0.8 Aug 10, 2018
@newswangerd newswangerd added the backport Backport pull request label Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Backport pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants