chore: log cleanup

This commit is contained in:
kieran 2024-12-21 18:28:43 +00:00
parent 7bfeba0ad1
commit e51bd2722e
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941

View File

@ -111,6 +111,7 @@ impl Worker {
.last_check_vms
.add(Days::new(BEFORE_EXPIRE_NOTIFICATION))
{
info!("Sending expire soon notification VM {}", db_vm.id);
self.tx.send(WorkJob::SendNotification {
user_id: db_vm.user_id,
title: Some(format!("[VM{}] Expiring Soon", db_vm.id)),
@ -193,10 +194,10 @@ impl Worker {
let client = get_host_client(&host)?;
for node in client.list_nodes().await? {
info!("Checking vms for {}", node.name);
debug!("Checking vms for {}", node.name);
for vm in client.list_vms(&node.name).await? {
let vm_id = vm.vm_id;
info!("\t{}: {:?}", vm_id, vm.status);
debug!("\t{}: {:?}", vm_id, vm.status);
if let Err(e) = self.handle_vm_info(vm).await {
error!("{}", e);
self.queue_admin_notification(