]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: trim path before logging it
authorRishabh Dave <ridave@redhat.com>
Tue, 2 Sep 2025 17:37:36 +0000 (23:07 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 1 Oct 2025 20:11:52 +0000 (01:41 +0530)
commitbdc8aae400fbbdd61df811455d49176deab1f331
tree07b7ba9cbd40ff1d73a3aabf1e61359c7c9372bd
parent11de1e5772fa88125de10dc7972e0e31e33140d0
client: trim path before logging it

Path can be virtually infinitely long and logging a long long path
(imagine around 2000 path components) is un-useful as well as lowers
readability of the log. Therefore, trim before logging.

Fixes: https://tracker.ceph.com/issues/72993
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/client/Client.cc
src/client/Client.h
src/include/filepath.cc
src/include/filepath.h