Skip to content

Commit 20a309f

Browse files
committed
chore: add debug info for outages
1 parent 24429c7 commit 20a309f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/analyze.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
3232
use chrono::{DateTime, Local};
3333
use deepsize::DeepSizeOf;
34-
use tracing::error;
34+
use tracing::{error, trace};
3535

3636
use crate::errors::AnalysisError;
3737
use crate::records::{display_group, Check, CheckType, IpType};
@@ -84,6 +84,11 @@ impl<'check> Outage<'check> {
8484
end: Option<&'check Check>,
8585
all_checks: &[&'check Check],
8686
) -> Self {
87+
{
88+
let mut f = String::new();
89+
display_group(all_checks, &mut f).expect("could not dump checks");
90+
trace!("dumping outage at creation: {f}",);
91+
}
8792
Self {
8893
start,
8994
end: if Some(start) == end { None } else { end },

0 commit comments

Comments
 (0)