From 99203b4466b7f916476aa7888a07973bda808e04 Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Mon, 20 Nov 2017 12:15:33 -0500 Subject: [PATCH] Log useful information in the API log heat-api doesn't routinely log anything above DEBUG level, and then most of the information comes from random middleware like version_negotiation. Log the actual request at INFO level, and remove useless information like the address in memory of the Controller object from the debug logs. Change-Id: I5bb115abd31b4050e608e913058b6955b4bddc5a --- heat/common/wsgi.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/heat/common/wsgi.py b/heat/common/wsgi.py index 7bba27abbf..993878cfab 100644 --- a/heat/common/wsgi.py +++ b/heat/common/wsgi.py @@ -848,13 +848,17 @@ class Resource(object): # ContentType=JSON results in a JSON serialized response... content_type = request.params.get("ContentType") + LOG.info("Processing request: %(method)s %(path)s", + {'method': request.method, 'path': request.path}) + try: deserialized_request = self.dispatch(self.deserializer, action, request) action_args.update(deserialized_request) - LOG.debug(('Calling %(controller)s : %(action)s'), - {'controller': self.controller, 'action': action}) + LOG.debug(('Calling %(controller)s.%(action)s'), + {'controller': type(self.controller).__name__, + 'action': action}) action_result = self.dispatch(self.controller, action, request, **action_args)