Skip to content

Commit 95a5e54

Browse files
committed
feat(console): filter out boring frames in backtraces (#365)
This commit adds `color_eyre`'s default backtrace frame filters, so we skip stuff that's not relevant.
1 parent ec66eda commit 95a5e54

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tokio-console/src/view/styles.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ impl Styles {
6363
// terminated by remote hosts.
6464
ErrorKind::NonRecoverable(_) => true,
6565
ErrorKind::Recoverable(_) => false,
66-
});
66+
})
67+
// filter out `color-eyre`'s default set of frames to skip from
68+
// backtraces.
69+
//
70+
// this includes `std::rt`, `color_eyre`'s own frames, and
71+
// `tokio::runtime` & friends.
72+
.add_default_filters();
6773

6874
if self.palette == Palette::NoColors {
6975
// disable colors in error reports

0 commit comments

Comments
 (0)