From 3a08c6d2e2ca9d57bf3016b509ab1f18a78b6dd9 Mon Sep 17 00:00:00 2001 From: ricolin Date: Wed, 15 Feb 2017 15:04:27 +0800 Subject: [PATCH] Stop showing json deserialized message in log We stop showing json deserialized message in debug log, because message will involved with some private credential message (like password). Let's block it for now, until we get a better solution. Partial-Bug: #1664792 Change-Id: I07410df56449c5414a5572d07507e17f5858c5c6 (cherry picked from commit 1c32b85d54a07ce12cdf9b1703fb3e41657a683d) --- heat/common/serializers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/heat/common/serializers.py b/heat/common/serializers.py index 836c6f7be1..3125ba98ba 100644 --- a/heat/common/serializers.py +++ b/heat/common/serializers.py @@ -37,7 +37,11 @@ class JSONResponseSerializer(object): return six.text_type(obj) response = jsonutils.dumps(data, default=sanitizer) - LOG.debug("JSON response : %s" % response) + + # TODO(ricolin): Fix response through private credential information, + # before enable below debug message. + # LOG.debug("JSON response : %s" % response) + return response def default(self, response, result):