From: Alfredo Deza Date: Mon, 9 Sep 2019 17:44:36 +0000 (-0400) Subject: ceph-volume: instantiate the new terminal logger in main() X-Git-Tag: v14.2.5~265^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=26b97ecbc4c7f9b0d4e01b8d8c79b0b6d7457d80;p=ceph.git ceph-volume: instantiate the new terminal logger in main() Signed-off-by: Alfredo Deza (cherry picked from commit bfb8422e262dcce49c50610a3977bfe1edc2a435) --- diff --git a/src/ceph-volume/ceph_volume/main.py b/src/ceph-volume/ceph_volume/main.py index 4685cb41c395..f396daf00254 100644 --- a/src/ceph-volume/ceph_volume/main.py +++ b/src/ceph-volume/ceph_volume/main.py @@ -131,6 +131,7 @@ Ceph Conf: {ceph_path} if os.path.isdir(conf.log_path): conf.log_path = os.path.join(args.log_path, 'ceph-volume.log') log.setup() + log.setup_console() logger = logging.getLogger(__name__) logger.info("Running command: ceph-volume %s %s", " ".join(main_args), " ".join(subcommand_args)) # set all variables from args and load everything needed according to