Merge "Fix to encrypt password print in debug logs"

This commit is contained in:
Zuul 2020-11-17 06:08:25 +00:00 committed by Gerrit Code Review
commit be7283ec72
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ from urllib import parse
from oslo_config import cfg
from oslo_log import log as logging
from oslo_serialization import jsonutils
from oslo_utils import strutils
from tacker._i18n import _
from tacker.vnfm.monitor_drivers.token import Token
@ -48,7 +49,7 @@ def config_opts():
class AlarmReceiver(wsgi.Middleware):
def process_request(self, req):
LOG.debug('Process request: %s', req)
LOG.debug('Process request: %s', strutils.mask_password(req))
if req.method != 'POST':
return
url = req.url