Skip to content

Commit 9821f3f

Browse files
committed
fix: use structured tracing field for label in parse_id_set
tracing::warn! does not support runtime format args like {label}. Move label to a structured field so it renders correctly in logs.
1 parent 2e1a96e commit 9821f3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fn parse_id_set(raw: &[String], label: &str) -> anyhow::Result<HashSet<u64>> {
8989
.filter_map(|s| match s.parse() {
9090
Ok(id) => Some(id),
9191
Err(_) => {
92-
tracing::warn!(value = %s, "ignoring invalid {label} entry");
92+
tracing::warn!(value = %s, label = label, "ignoring invalid entry");
9393
None
9494
}
9595
})

0 commit comments

Comments
 (0)