Preventing Password logging
Change-Id: I552bd6bf3f9ce9f86ddfbfcc5f835f162d114132
This commit is contained in:
@@ -645,6 +645,9 @@ class ContextFormatter(logging.Formatter):
|
|||||||
else:
|
else:
|
||||||
record.msg = "Client-side error: Invalid input for field/attribute name"
|
record.msg = "Client-side error: Invalid input for field/attribute name"
|
||||||
|
|
||||||
|
if "keystone_authtoken.password" in record.args:
|
||||||
|
record.args = ("keystone_authtoken.password","****")
|
||||||
|
|
||||||
if not isinstance(record.msg, six.text_type):
|
if not isinstance(record.msg, six.text_type):
|
||||||
record.msg = six.text_type(record.msg)
|
record.msg = six.text_type(record.msg)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user