Skip to content

Commit 2ee6303

Browse files
cafkafkMartinFillon
andcommitted
fix(debug): improve trace strings
Co-authored-by: MartinFillon <[email protected]> Signed-off-by: Christina Sørensen <[email protected]>
1 parent 2f41897 commit 2ee6303

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/fs/file.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ impl<'dir> File<'dir> {
204204
/// Returns an IO error upon failure, but this shouldn’t be used to check
205205
/// if a `File` is a directory or not! For that, just use `is_directory()`.
206206
pub fn to_dir(&self) -> io::Result<Dir> {
207-
trace!("to_dir reading dir");
207+
trace!("to_dir: reading dir");
208208
Dir::read_dir(self.path.clone())
209209
}
210210

@@ -532,7 +532,7 @@ impl<'dir> File<'dir> {
532532
/// but as mentioned in the size function comment above, different filesystems
533533
/// make it difficult to get any info about a dir by it's size, so this may be it.
534534
fn is_empty_directory(&self) -> bool {
535-
trace!("is_empty_directory reading dir");
535+
trace!("is_empty_directory: reading dir");
536536
match Dir::read_dir(self.path.clone()) {
537537
// . & .. are skipped, if the returned iterator has .next(), it's not empty
538538
Ok(has_files) => has_files.files(super::DotFilter::Dotfiles, None, false, false).next().is_none(),

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn main() {
121121
info!("matching on exa.run");
122122
match exa.run() {
123123
Ok(exit_status) => {
124-
trace!("exa.run exit Ok(exit_status)");
124+
trace!("exa.run: exit Ok(exit_status)");
125125
exit(exit_status);
126126
}
127127

@@ -132,7 +132,7 @@ fn main() {
132132

133133
Err(e) => {
134134
eprintln!("{e}");
135-
trace!("exa.run exit RUNTIME_ERROR");
135+
trace!("exa.run: exit RUNTIME_ERROR");
136136
exit(exits::RUNTIME_ERROR);
137137
}
138138
}

0 commit comments

Comments
 (0)