Merge "Use more efficient mask_dict_password to mask password"

This commit is contained in:
Jenkins 2016-02-24 15:26:06 +00:00 committed by Gerrit Code Review
commit e133c7e863

View File

@ -40,7 +40,7 @@ class LogDriver(notifier.Driver):
message['event_type']))
method = getattr(logger, priority.lower(), None)
if method:
method(strutils.mask_password(jsonutils.dumps(message)))
method(jsonutils.dumps(strutils.mask_dict_password(message)))
else:
warnings.warn('Unable to log message as notify cannot find a '
'logger with the priority specified '