Commit dec95dfc authored by Marco Mariani's avatar Marco Mariani

slapos.cli: don't log exceptions happened during loggin configuration

because it would go nowhere. just use stderr as usual
parent a31304cf
...@@ -176,10 +176,10 @@ class SlapOSApp(cliff.app.App): ...@@ -176,10 +176,10 @@ class SlapOSApp(cliff.app.App):
def run(self, argv): def run(self, argv):
# same as cliff.App.run except that it won't re-raise # same as cliff.App.run except that it won't re-raise
# a logged exception, and doesn't use --debug # a logged exception, and doesn't use --debug
try:
self.options, remainder = self.parser.parse_known_args(argv) self.options, remainder = self.parser.parse_known_args(argv)
self.configure_logging() self.configure_logging()
self.interactive_mode = not remainder self.interactive_mode = not remainder
try:
self.initialize_app(remainder) self.initialize_app(remainder)
except Exception as err: except Exception as err:
LOG.exception(err) LOG.exception(err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment