Skip to content
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

Merged

Conversation

bmr-cymru
Copy link
Member

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.

Copy link
Member

@mulkieran mulkieran left a 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);
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted, thanks!

Copy link
Member

@mulkieran mulkieran left a 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.

@bmr-cymru bmr-cymru force-pushed the bmr-quiet-dm-debug-logging branch from 9753e33 to 8480103 Compare November 8, 2023 13:47
@bmr-cymru
Copy link
Member Author

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.

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.
@bmr-cymru bmr-cymru force-pushed the bmr-quiet-dm-debug-logging branch from 8480103 to ef2697e Compare November 8, 2023 14:44
@bmr-cymru
Copy link
Member Author

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.

@mulkieran mulkieran merged commit ea00a5c into stratis-storage:master Nov 9, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants