summaryrefslogtreecommitdiff
path: root/oslo_middleware/catch_errors.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix invalid escape sequence warningsSean McGinnis2019-04-111-1/+1
| | | | | | | | | | Py36 is more strict about escape sequences in strings. Regex patterns often cause warnings due to not being normal escape sequences. This gets rid of a few warnings by switching these regex strings to use raw strings. Change-Id: Ied16e55780f2bf73fac54e0afc8394af468a67b8 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Remove log translations3.25.0lioplhp2017-03-281-3/+2
| | | | | | | | | | | | | Log messages are no longer being translated. This removes all use of the _LE, _LI, and _LW translation markers to simplify logging and to avoid confusion with new contributions. See: http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html Change-Id: I797b5f0374d6f8ca1cb4641246cab414aa5466dd
* Filter token data out of catch_errors middleware3.23.1Jamie Lennox2017-01-261-3/+5
| | | | | | | | | If an exception is caught by the catch_errors middleware the entire request is dumped into the log including sensitive information like tokens. Filter that information before outputting the failed request. Closes-Bug: #1628031 Change-Id: I2563403993513c37751576223275350cac2e0937
* Filter X-Auth-Token in catch_errorsJiaJunsu2016-11-301-0/+2
| | | | | | | | If X-Auth-Token is logged in files, it may be caught by attackers. This patch tries to replace token-id by * in log files. Change-Id: Icf0cd9d4da37575d79a0da94ade979793ad0d3fa Closes-Bug:#1646254
* Fix string formattingAbhijeet Malawade2015-09-251-1/+1
| | | | | | TrivialFix Change-Id: Icaa184373cb1a7775950295863bb8bbd663d875c
* Restore backward compat of paste factoryMehdi Abaakouk2015-08-201-1/+1
| | | | | | | | | | | | | Some application inherits from our middleware class When we homogenize the signature and configuration handling of all middlewares we break them. This change fixes that. Closes-bug: #1486735 Change-Id: I40c3d59110c6f8c5a1b3d3ccc734dc441069b025
* Move i18n module to a private nameDoug Hellmann2015-01-211-1/+1
| | | | | | | The i18n module for this library is private to the library and should never be used by outside code. Rename the module to reflect this. Change-Id: I39149056daeeb27428b938fb9cd7278cd42f2444
* Move files out of the namespace package0.3.0Doug Hellmann2015-01-061-0/+43
Move the public API out of oslo.middleware to oslo_middleware. Retain the ability to import from the old namespace package for backwards compatibility for this release cycle. bp/drop-namespace-packages Change-Id: If88c65c82b64f096a02f7ec62e019aea4de2f9d3