-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downgrade DM debugging messages to trace level #890
Downgrade DM debugging messages to trace level #890
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine w/ me, although if you wanted to leave the bigger actions, create, rename, remove at debug level, I would be fine w/ that also.
src/core/dm.rs
Outdated
@@ -586,7 +586,7 @@ impl DM { | |||
pub fn table_clear(&self, id: &DevId<'_>) -> DmResult<DeviceInfo> { | |||
let mut hdr = DmOptions::default().to_ioctl_hdr(Some(id), DmFlags::empty())?; | |||
|
|||
debug!("Clearing inactive dable for {}", id); | |||
trace!("Clearing inactive dable for {}", id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well fix typo also: ^dable^table
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well spotted, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot about the typo...definitely should fix that.
9753e33
to
8480103
Compare
I think that would make sense. Those operations should be considerably less frequent in any case. I'll update the PR. |
Commit 66e1fdf added logging to the DM module using the debug! macro. In practice these messages can be very noisy, especially for e.g. in the Stratis test suite (which calls the status() method on thin pool devices). This leads to lots of messages like the following: [2023-11-06T16:01:05Z DEBUG devicemapper::core::dm] Retrieving table status for stratis-1-private-50db9929d265403b820bb155c8f5ae89-thinpool-pool Running the Stratis test suite results in hundreds of these messages being logged at debug level. Downgrade the logging calls in the DM module from debug! to trace! to quiet this down.
8480103
to
ef2697e
Compare
I've revised this to leave the create, remove, rename, suspend/resume and target message logs at debug level with the rest downgraded to trace. |
Commit 66e1fdf added logging to the DM module using the debug! macro.
In practice these messages can be very noisy, especially for e.g. in the Stratis test suite (which calls the status() method on thin pool devices). This leads to lots of messages like the following:
[2023-11-06T16:01:05Z DEBUG devicemapper::core::dm] Retrieving table status for stratis-1-private-50db9929d265403b820bb155c8f5ae89-thinpool-pool
Running the Stratis test suite results in hundreds of these messages being logged at debug level.
Downgrade the logging calls in the DM module from debug! to trace! to quiet this down.