heat/etc/heat
Zane Bitter 2efded7f28 Move context middleware earlier in pipeline
Until the context middleware has been processed, logs from any other
middleware will be logged with the request ID of the *previous* request.
Currently this is most logs in the API log files, which makes the request
ID worse than useless for determining what is going on.

To ensure all logs get the correct request ID, move the context middleware
close to the front of the pipeline, right after the request_id middleware
that generates the request ID and the auth middleware (the data from which
is needed to populate the context). Also, explicitly include the request_id
middleware in the cfn-compatibility APIs' pipelines.

Unfortunately, any failures in the auth middleware will still be logged
with the wrong request ID. This appears to be unavoidable, since we can't
create the context until after we have authenticated the request.

Change-Id: I097bf70431a999a0f6aa56079ffb5743b50d4d7f
2018-01-31 15:02:20 -05:00
..
environment.d Deprecate combination alarm 2016-07-04 11:09:50 +08:00
templates Change namespace 'ceilometer' to 'aodh' 2016-07-04 03:22:49 +00:00
README-heat.conf.txt Remove heat.config.sample file 2014-12-03 20:35:36 +00:00
api-paste.ini Move context middleware earlier in pipeline 2018-01-31 15:02:20 -05:00
heat-policy-generator.conf [policy in code] part 7 add sample and releasenote 2017-12-13 10:58:56 +08:00