From 27b2ff42ce6bf13c394cf5516b220e8abc87a968 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Thu, 6 Dec 2012 10:40:36 -0500 Subject: Add deprecated --logfile common opt. This adds a deprecated common options for --logfile which is an alias for --log_file. This resolves some backwards compatability issues with the most recent oslo common code where --logfile was no longer a valid opt. Change-Id: I17b1277da94a2d81ae439d650a6d7321420dfe14 --- openstack/common/cfg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openstack/common') diff --git a/openstack/common/cfg.py b/openstack/common/cfg.py index acef6fb..f5b3a84 100644 --- a/openstack/common/cfg.py +++ b/openstack/common/cfg.py @@ -1756,11 +1756,12 @@ class CommonConfigOpts(ConfigOpts): 'Default: %(default)s'), StrOpt('log-file', metavar='PATH', + deprecated_name='logfile', help='(Optional) Name of log file to output to. ' 'If not set, logging will go to stdout.'), StrOpt('log-dir', help='(Optional) The directory to keep log files in ' - '(will be prepended to --logfile)'), + '(will be prepended to --log-file)'), BoolOpt('use-syslog', default=False, help='Use syslog for logging.'), -- cgit