Demote per-read Drive::read trace event to TRACE
Drive::read fires hundreds of thousands of times per rip. Logging its entry at DEBUG floods a diagnostic log and buries the events that actually matter. Move it to TRACE so a level-3 (debug) bug-report log stays readable; level-4 (trace) still captures it for deep dives.
This commit is contained in:
+3
-1
@@ -622,7 +622,9 @@ impl Drive {
|
|||||||
} else {
|
} else {
|
||||||
crate::scsi::READ_TIMEOUT_MS
|
crate::scsi::READ_TIMEOUT_MS
|
||||||
};
|
};
|
||||||
tracing::debug!(
|
// TRACE, not DEBUG: this fires on every read (hundreds of thousands per
|
||||||
|
// rip). At DEBUG it floods a bug-report log and buries the real events.
|
||||||
|
tracing::trace!(
|
||||||
target: "freemkv::drive",
|
target: "freemkv::drive",
|
||||||
lba,
|
lba,
|
||||||
count,
|
count,
|
||||||
|
|||||||
Reference in New Issue
Block a user