From f553558e53827bf0c2859e04d31267dffd339a25 Mon Sep 17 00:00:00 2001 From: bismog Date: Fri, 13 Oct 2017 22:32:42 +0800 Subject: [PATCH] Add oslo_log command options to magnum-db-manage As we all know, 'command magnum-api' and 'magnum-conductor' have many options such as 'log-file' and 'use-syslog'. But as for magnum-db-magnum, these are not available. Add oslo_log command options will help. Change-Id: If61efbde56e1d7dd0ed88d76fa42dd00501cc938 --- magnum/cmd/db_manage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/magnum/cmd/db_manage.py b/magnum/cmd/db_manage.py index 44a16e5c00..e96e12f4b2 100644 --- a/magnum/cmd/db_manage.py +++ b/magnum/cmd/db_manage.py @@ -14,6 +14,7 @@ """Starter script for magnum-db-manage.""" from oslo_config import cfg +from oslo_log import log as logging from magnum.db import migration @@ -63,6 +64,7 @@ command_opt = cfg.SubCommandOpt('command', def main(): + logging.register_options(CONF) CONF.register_cli_opt(command_opt) CONF(project='magnum')