Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow disabling rbd-mirror debug logs
For testing the fix to bug[1], Ilia asked to run without debug logs, since they make the issue much harder to reproduce. Add an environment variable RBD_MIRROR_DEBUG=0 to disable debug logs. We enable debug logs by default so issues in CI or developers environment will have useful logs by default. The new environment variable may also be useful for developers keeping an environment for long time and want to avoid collecting hundreds of megabytes of debug logs. Example usage: # Starting environment without debug logs $ RBD_MIRROR_DEBUG=0 drenv start envs/rook.yaml ... # Disabling debug logs on running environment $ RBD_MIRROR_DEBUG=0 addons/rbd-mirror/start dr1 dr2 Disable rbd-mirror debug logs in cluster 'dr1' Disable rbd-mirror debug logs in cluster 'dr2' Getting mirroring info site name for cluster 'dr1' ... # Enabling debug logs on running environment $ addons/rbd-mirror/start dr1 dr2 $ addons/rbd-mirror/start dr1 dr2 Enable rbd-mirror debug logs in cluster 'dr1' Enable rbd-mirror debug logs in cluster 'dr2' Getting mirroring info site name for cluster 'dr1' ... [1] https://tracker.ceph.com/issues/65487#note-20 Signed-off-by: Nir Soffer <[email protected]>
- Loading branch information