Compare commits
1 changed files with 1 additions and 13 deletions
|
|
@ -49,23 +49,11 @@ pub(super) async fn ensure_ci_runner_registered(core_token: &str) {
|
||||||
Ok(token) => {
|
Ok(token) => {
|
||||||
if let Err(e) = crate::priv_client::register_ci_runner(&token).await {
|
if let Err(e) = crate::priv_client::register_ci_runner(&token).await {
|
||||||
tracing::warn!(error = ?e, "ci runner: hive-priv register_ci_runner failed");
|
tracing::warn!(error = ?e, "ci runner: hive-priv register_ci_runner failed");
|
||||||
crate::warnings::set_boot_warning(
|
|
||||||
"ci_runner_register",
|
|
||||||
"crit",
|
|
||||||
format!("ci runner: hive-priv register_ci_runner failed: {e}"),
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
tracing::info!("ci runner: registered hive-ci runner with a fresh token");
|
tracing::info!("ci runner: registered hive-ci runner with a fresh token");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => tracing::warn!(error = ?e, "ci runner: fetch registration token failed"),
|
||||||
tracing::warn!(error = ?e, "ci runner: fetch registration token failed");
|
|
||||||
crate::warnings::set_boot_warning(
|
|
||||||
"ci_runner_fetch_token",
|
|
||||||
"crit",
|
|
||||||
format!("ci runner: fetch registration token failed: {e}"),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue