]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_ceph_new: Enhance logging for improved debugging and code flow visibility (part 2)
authorShweta Sodani <ssodani@redhat.com>
Fri, 14 Feb 2025 14:59:17 +0000 (20:29 +0530)
committerAnoop C S <anoopcs@samba.org>
Mon, 28 Apr 2025 07:04:15 +0000 (07:04 +0000)
commit5cab6a9be79c846202bfa7c617eb4f956bea0d0b
treeb742ca1fb0f9402beb84e1c250a48a6e76b064e0
parentb5bd36dfd7dfd9a09a3f9378330df3be9db4551f
vfs_ceph_new: Enhance logging for improved debugging and code flow visibility (part 2)

This commit introduces significant enhancements to our logging system to
improve debugging capabilities and provide better visibility into the
code's execution flow. 

This is part 2 for logging improvement. There have already been some
logging improvements done in the past.

https://gitlab.com/samba-team/samba/-/merge_requests/3948

This commit includes following key changes.
Expanded a logging message
1) Every function entry and exit point.
2) Error Path / Error handling blocks.
3) Key decision branches (if/else statements).
Consistent logging.
1) Logging message to print either the file/dir name its
   feasible.
2) Standardized log message formatting to ensure consistency and
   readability. This makes it easier to scan and understand log
   output.

Impact
This enhancement will reduce the time required to diagnose and resolve
issues. It will provide valuable insights into the system's behavior,
enabling us to optimize performance and improve user experience.

Signed-off-by: Shweta Sodani <ssodani@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Mon Apr 28 07:04:15 UTC 2025 on atb-devel-224
source3/modules/vfs_ceph_new.c