diff --git a/redfish/main.py b/redfish/main.py index a080129..9bdf5f0 100644 --- a/redfish/main.py +++ b/redfish/main.py @@ -205,9 +205,6 @@ class RedfishConnection(object): "this is insecure and can allow" + " a man in the middle attack") - # Show redfish standard headers - config.logger.debug(self.connection_parameters.headers) - config.logger.debug("Root url : %s", self.connection_parameters.rooturl) self.Root = types.Root(self.connection_parameters.rooturl, diff --git a/redfish/types.py b/redfish/types.py index 304117f..0ee1b35 100644 --- a/redfish/types.py +++ b/redfish/types.py @@ -32,7 +32,12 @@ class Base(object): self.url = url self.api_url = tortilla.wrap(url, debug=config.TORTILLADEBUG) - config.logger.debug(connection_parameters.headers) + config.logger.debug( + "------------------------------------------------------------") + config.logger.debug("Url: %s" % url) + config.logger.debug("Header: %s" % connection_parameters.headers) + config.logger.debug( + "------------------------------------------------------------") try: self.data = self.api_url.get( @@ -50,7 +55,7 @@ class Base(object): 'Ivalid content : Content does not appear to be a valid ' + \ 'Redfish json\n' raise exception.InvalidRedfishContentException(msg) - config.logger.debug(self.data) + config.logger.debug(pprint.PrettyPrinter(indent=4).pformat(self.data)) def get_link_url(self, link_type): '''Need to be explained.