Skip to content

Commit

Permalink
Add slog structured logging to various controllers and utility func…
Browse files Browse the repository at this point in the history
…tions

- Integrated `slog` logging into the `MirrorPeerSecretReconciler`, `MirrorPeerReconciler`, and `DRPolicyReconciler` controllers.
- Improved error handling and logging for better observability and debugging.
- Replaced klog with slog for consistency across the codebase.

Changes include:
- Added `Logger` field to controller structs to pass and use `slog.Logger`.
- Enhanced logging messages to provide more context, including function names, object names, namespaces, and error details.
- Ensured logs capture both normal operation (e.g., successful updates) and error conditions.

Signed-off-by: vbadrina <[email protected]>
  • Loading branch information
vbnrh committed Jun 18, 2024
1 parent acfbd5a commit d97fbb3
Show file tree
Hide file tree
Showing 6 changed files with 519 additions and 321 deletions.
Loading

0 comments on commit d97fbb3

Please sign in to comment.