Improve log

This commit is contained in:
dynco-nym
2025-03-12 13:00:45 +01:00
parent 4f5118d3f4
commit ac17f8d7de
3 changed files with 6 additions and 3 deletions
@@ -373,6 +373,7 @@ impl TryFrom<GatewaySessionsRecord> for http::models::SessionStats {
}
}
#[derive(strum_macros::Display)]
pub(crate) enum ScrapeNodeKind {
LegacyMixnode { mix_id: i64 },
MixingNymNode { node_id: i64 },
@@ -195,7 +195,7 @@ pub(crate) async fn get_active_node_descriptions(
WHERE
self_described IS NOT NULL
AND
active = 1
active = true
"#,
)
.fetch_all(&mut *conn)
@@ -134,8 +134,9 @@ impl Scraper {
node.node_id()
),
Err(e) => debug!(
"📝 ❌ Description task #{} for node {} failed: {}",
"📝 ❌ Description task #{} for {} {} failed: {}",
task_id,
node.node_kind,
node.node_id(),
e
),
@@ -178,8 +179,9 @@ impl Scraper {
node.node_id()
),
Err(e) => debug!(
"📊 ❌ Packet stats task #{} for node {} failed: {}",
"📊 ❌ Packet stats task #{} for {} {} failed: {}",
task_id,
node.node_kind,
node.node_id(),
e
),