Override configure_logging to quieten iso8601 and requests
This prevents the following messy output: Starting new HTTP connection (1): localhost Change-Id: Ibb80f792939441dc90c4a041ae83f38b0c7e3ec2
This commit is contained in:
@@ -70,6 +70,12 @@ class MistralShell(App):
|
||||
for k, v in self.commands.items():
|
||||
self.command_manager.add_command(k, v)
|
||||
|
||||
def configure_logging(self):
|
||||
super(MistralShell, self).configure_logging()
|
||||
logging.getLogger('iso8601').setLevel(logging.WARNING)
|
||||
if self.options.verbose_level <= 1:
|
||||
logging.getLogger('requests').setLevel(logging.WARNING)
|
||||
|
||||
def build_option_parser(self, description, version,
|
||||
argparse_kwargs=None):
|
||||
"""Return an argparse option parser for this application.
|
||||
|
||||
Reference in New Issue
Block a user