From e94ab39c2e7e3f9780f9d593c5d85eae83db3fa7 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 10 Oct 2023 16:30:00 +0530 Subject: [PATCH] qa/cephfs: log commands on INFO logging level Commands issued by negtest_ceph_cmd() aren't printed because log level (due to code for teuthology) changes from DEBUG to INFO in case of some files. This patch ensures that users can see commands being executed regardless of whether log level is changed or not. Signed-off-by: Rishabh Dave (cherry picked from commit 03df86b7c54325fd577bacec6a1f4c6441117e72) --- qa/tasks/vstart_runner.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qa/tasks/vstart_runner.py b/qa/tasks/vstart_runner.py index 3d429c2653e38..1c1a2a96398a5 100644 --- a/qa/tasks/vstart_runner.py +++ b/qa/tasks/vstart_runner.py @@ -407,7 +407,13 @@ sudo() { usr_args, args = self._omit_cmd_args(args, omit_sudo) - log.debug('> ' + usr_args) + # Let's print all commands on INFO log level since some logging level + # might be changed to INFO from DEBUG during a vstart_runner.py's + # execution due to code added for teuthology. This happened for + # ceph_test_case.RunCephCmd.negtest_ceph_cmd(). Commands it executes + # weren't printed in output because logging level for + # ceph_test_case.py is set to INFO by default. + log.info('> ' + usr_args) return args, usr_args -- 2.39.5