various: replace silent error discards with logged warnings

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I465d760b5330980270b64b4a89abc09f6a6a6964
This commit is contained in:
raf 2026-02-15 23:30:27 +03:00
commit 38ed7faee2
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
7 changed files with 147 additions and 40 deletions

View file

@ -175,12 +175,22 @@ pub async fn auto_promote_if_complete(
.map_err(CiError::Database)?;
for channel in channels {
let _ = promote(pool, channel.id, evaluation_id).await;
tracing::info!(
channel = %channel.name,
evaluation_id = %evaluation_id,
"Auto-promoted evaluation to channel"
);
match promote(pool, channel.id, evaluation_id).await {
Ok(_) => {
tracing::info!(
channel = %channel.name,
evaluation_id = %evaluation_id,
"Auto-promoted evaluation to channel"
);
},
Err(e) => {
tracing::warn!(
channel = %channel.name,
evaluation_id = %evaluation_id,
"Failed to auto-promote channel: {e}"
);
},
}
}
Ok(())