Improve log
This commit is contained in:
@@ -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
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user