diff options
author | Steven Hardy <shardy@redhat.com> | 2014-03-10 21:56:13 +0000 |
---|---|---|
committer | Steven Hardy <shardy@redhat.com> | 2014-03-12 15:18:12 +0000 |
commit | d9e3b3d2cdae60804851200ef96d9c8250bce210 (patch) | |
tree | da5d6e4bd278943e4057ba2d2821e1c6a97a6bfd /heatclient/shell.py | |
parent | 38098938be46998b651060c81fa92a9ecad562f6 (diff) | |
download | python-heatclient-d9e3b3d2cdae60804851200ef96d9c8250bce210.tar.gz |
Deprecate create/adopt --create-timeout in favor of --timeout
Replace the --create-timeout option with a more generic and intuitive
--timeout option, which can also later be used for update.
Since users may be using this option and it does currently work, leave
the old -c/--create-timeout option for now, but mark deprecated in the
usage and output a warning message if users use it. To make this
warning visible the default loglevel is changed to WARNING.
Note neither timeout contains an integer default now, we rely on the
server-side default (which is 60mins anyway) as this make the fallback
to support the previous option easier and potentially to provide an
easier way to solve heat bug #1290603.
Partial-Bug: #1290456
Related-Bug: #1290603
Change-Id: Ia8c8d61b259ffa1f8a59d29a3e7fa7d9c128984f
Diffstat (limited to 'heatclient/shell.py')
-rw-r--r-- | heatclient/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heatclient/shell.py b/heatclient/shell.py index 1ab0073..badb72a 100644 --- a/heatclient/shell.py +++ b/heatclient/shell.py @@ -273,7 +273,7 @@ class HeatShell(object): endpoint_type=kwargs.get('endpoint_type') or 'publicURL') def _setup_logging(self, debug): - log_lvl = logging.DEBUG if debug else logging.ERROR + log_lvl = logging.DEBUG if debug else logging.WARNING logging.basicConfig( format="%(levelname)s (%(module)s:%(lineno)d) %(message)s", level=log_lvl) |