]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: log commands on INFO logging level
authorRishabh Dave <ridave@redhat.com>
Tue, 10 Oct 2023 11:00:00 +0000 (16:30 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 12 Oct 2023 09:19:22 +0000 (14:49 +0530)
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 <ridave@redhat.com>
qa/tasks/vstart_runner.py

index caf7a7fe3f799c4581f08b17eb7d50032cc8e993..96dc9fffba2fd919b0c37c172c42cfb6bfea483c 100644 (file)
@@ -436,7 +436,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