Merge "Stop logging swiftclient errors"

This commit is contained in:
Jenkins 2016-09-27 14:36:01 +00:00 committed by Gerrit Code Review
commit 13b54d0c93
1 changed files with 7 additions and 0 deletions

View File

@ -1030,6 +1030,13 @@ class DeployOvercloud(command.Command):
def take_action(self, parsed_args):
self.log.debug("take_action(%s)" % parsed_args)
# Swiftclient logs things like 404s at error level, which is a problem
# because we use EAFP to check for the existence of files. Turn off
# most swiftclient logging to avoid cluttering up our output with
# pointless tracebacks.
sc_logger = logging.getLogger("swiftclient")
sc_logger.setLevel(logging.CRITICAL)
self._validate_args(parsed_args)
clients = self.app.client_manager