summaryrefslogtreecommitdiff
path: root/openstackclient/shell.py
diff options
context:
space:
mode:
authorTerry Howe <terrylhowe@gmail.com>2015-10-30 17:38:42 +0900
committerTerry Howe <terrylhowe@gmail.com>2015-10-30 17:38:42 +0900
commit05800c47227ce7c6918296c33fe0b9a774d14cda (patch)
tree4a9b63dfe1beb9ff665be494bfa136f49c966845 /openstackclient/shell.py
parentbfebac82825a7242ad4e2923e3b71d38b391f08e (diff)
downloadpython-openstackclient-05800c47227ce7c6918296c33fe0b9a774d14cda.tar.gz
Rename context.py to logs.py
At one point this file contained the context for logging, but the reason for its existence is now for logging. Implements: blueprint logging-migration Change-Id: I4ba42bbef97b09d31236ac8c01b6fb23827b8bee
Diffstat (limited to 'openstackclient/shell.py')
-rw-r--r--openstackclient/shell.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py
index f7704efc..deb35b3c 100644
--- a/openstackclient/shell.py
+++ b/openstackclient/shell.py
@@ -29,8 +29,8 @@ from cliff import help
import openstackclient
from openstackclient.common import clientmanager
from openstackclient.common import commandmanager
-from openstackclient.common import context
from openstackclient.common import exceptions as exc
+from openstackclient.common import logs
from openstackclient.common import timing
from openstackclient.common import utils
@@ -98,7 +98,7 @@ class OpenStackShell(app.App):
def configure_logging(self):
"""Configure logging for the app."""
- self.log_configurator = context.LogConfigurator(self.options)
+ self.log_configurator = logs.LogConfigurator(self.options)
self.dump_stack_trace = self.log_configurator.dump_trace
def run(self, argv):
@@ -240,8 +240,6 @@ class OpenStackShell(app.App):
cloud=self.options.cloud,
argparse=self.options,
)
- if self.options.debug is not None:
- self.options.debug = False
self.log_configurator.configure(self.cloud)
self.dump_stack_trace = self.log_configurator.dump_trace