diff --git a/src/storage.rs b/src/storage.rs index 90da6ed..c31aa95 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -73,7 +73,7 @@ impl Storage { .remove(key.as_bytes()) .context("Failed to delete container from storage")?; - debug!("🗑️ Deleted container: {}", container_id); + info!("🗑️ Deleted container: {}", container_id); Ok(()) } } diff --git a/src/updater.rs b/src/updater.rs index c466a87..c4212cf 100644 --- a/src/updater.rs +++ b/src/updater.rs @@ -129,7 +129,9 @@ impl UpdateManager { if let Ok(mut container) = self.storage.get_container(container_id).await { container.status = ContainerStatus::Lost; container.last_seen = Utc::now(); - self.storage.save_container(&container).await?; + self.storage + .delete_container(&container.container_id) + .await?; info!("📤 Marked container {} as lost", container.name);