Merge "Allow debug to be set in configuration file"
This commit is contained in:
@@ -241,10 +241,16 @@ class OpenStackShell(app.App):
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# TODO(thowe): Change cliff so the default value for debug
|
||||||
|
# can be set to None.
|
||||||
|
if not self.options.debug:
|
||||||
|
self.options.debug = None
|
||||||
self.cloud = cc.get_one_cloud(
|
self.cloud = cc.get_one_cloud(
|
||||||
cloud=self.options.cloud,
|
cloud=self.options.cloud,
|
||||||
argparse=self.options,
|
argparse=self.options,
|
||||||
)
|
)
|
||||||
|
if self.options.debug is not None:
|
||||||
|
self.options.debug = False
|
||||||
|
|
||||||
self.log_configurator.configure(self.cloud)
|
self.log_configurator.configure(self.cloud)
|
||||||
self.dump_stack_trace = self.log_configurator.dump_trace
|
self.dump_stack_trace = self.log_configurator.dump_trace
|
||||||
|
Reference in New Issue
Block a user