Skip to content

Commit eb516aa

Browse files
authored
add log when toploc returns unknown status (#398)
1 parent c7b606d commit eb516aa

File tree

1 file changed

+5
-2
lines changed
  • crates/validator/src/validators/synthetic_data

1 file changed

+5
-2
lines changed

crates/validator/src/validators/synthetic_data/toploc.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::metrics::MetricsContext;
22

33
use super::ValidationResult;
44
use anyhow::Error;
5-
use log::debug;
5+
use log::{debug, warn};
66
use log::{error, info};
77
use serde::{Deserialize, Serialize};
88

@@ -363,7 +363,10 @@ impl Toploc {
363363
"reject" => ValidationResult::Reject,
364364
"crashed" => ValidationResult::Crashed,
365365
"pending" => ValidationResult::Pending,
366-
_ => ValidationResult::Unknown,
366+
_ => {
367+
warn!("Unknown status found for {}: {}", file_name, status);
368+
ValidationResult::Unknown
369+
}
367370
};
368371
Ok(validation_result)
369372
}

0 commit comments

Comments
 (0)