Merge "Stop logging swiftclient errors"
This commit is contained in:
commit
13b54d0c93
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue