Skip to content

Commit d6788f7

Browse files
author
Dean Troyer
committed
Move option logging back to start if initialize_app()
The log for the options should be printed early enough to see what is being passed in to occ. Change-Id: I97b09bc28abcd485b6793d0223b9f8602237fd80
1 parent 817ab3e commit d6788f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openstackclient/shell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ def initialize_app(self, argv):
197197

198198
# Parent __init__ parses argv into self.options
199199
super(OpenStackShell, self).initialize_app(argv)
200+
self.log.info("START with options: %s", self.command_options)
201+
self.log.debug("options: %s", self.options)
200202

201203
# Set the default plugin to token_endpoint if url and token are given
202204
if (self.options.url and self.options.token):
@@ -239,8 +241,6 @@ def initialize_app(self, argv):
239241

240242
self.log_configurator.configure(self.cloud)
241243
self.dump_stack_trace = self.log_configurator.dump_trace
242-
self.log.info("START with options: %s", self.command_options)
243-
self.log.debug("options: %s", self.options)
244244
self.log.debug("defaults: %s", cc.defaults)
245245
self.log.debug("cloud cfg: %s", self.cloud.config)
246246

0 commit comments

Comments
 (0)