From: Rishabh Dave Date: Mon, 8 Dec 2025 12:36:40 +0000 (+0530) Subject: volumes/stats_util: improve log messages X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=615ed1472ee29a3d6135b71f1b0504796dccfa9d;p=ceph-ci.git volumes/stats_util: improve log messages Signed-off-by: Rishabh Dave --- diff --git a/src/pybind/mgr/volumes/fs/stats_util.py b/src/pybind/mgr/volumes/fs/stats_util.py index 683ffc2df85..7a6cfe661c9 100644 --- a/src/pybind/mgr/volumes/fs/stats_util.py +++ b/src/pybind/mgr/volumes/fs/stats_util.py @@ -47,6 +47,7 @@ def get_amount_copied(src_path, dst_path, fs_handle): try: size_t = int(fs_handle.getxattr(src_path, rbytes)) + log.info(f'rbytes on path src_path ({src_path}) = {size_t}') except ObjectNotFound: log.info(f'get_amount_copied(): source path "{src_path}" went missing, ' 'couldn\'t run getxattr on it') @@ -54,6 +55,7 @@ def get_amount_copied(src_path, dst_path, fs_handle): try: size_c = int(fs_handle.getxattr(dst_path, rbytes)) + log.info(f'rbytes on path dst_path ({dst_path}) = {size_c}') except ObjectNotFound: log.info(f'get_amount_copied(): destination path "{dst_path}" went ' 'missing, couldn\'t run getxattr on it') @@ -210,8 +212,8 @@ class CloneProgressReporter: # get clone in order in which they were launched, this # should be same as the ctime on clone entry. clone_index_entries = clone_index.list_entries_by_ctime_order() - log.debug('finished collecting all clone index entries, ' - f'found {len(clones)} clone index entries') + log.debug(f'found {len(clone_index_entries)} clone index ' + 'entries') # reset ongoing clone counter before iterating over all clone # entries @@ -248,8 +250,7 @@ class CloneProgressReporter: clones.append(ci) - log.debug('finished collecting info on all clones, found ' - f'{len(clones)} clones out of which ' + log.debug(f'found {len(clones)} clones, out of which ' f'{self.ongoing_clones_count} are ongoing clones') return clones