This commit is contained in:
TriMill 2023-07-13 23:40:21 -04:00
parent 5460fcb606
commit 461edfa5bb

View file

@ -5,7 +5,7 @@ use axum::{
response::{Html, IntoResponse, Response}, response::{Html, IntoResponse, Response},
Router, extract::{Path, Query, State}, Form, http::{header, StatusCode}, Json, Router, extract::{Path, Query, State}, Form, http::{header, StatusCode}, Json,
}; };
use log::{info, debug}; use log::{info, debug, trace};
use rand::{seq::SliceRandom, Rng, distributions::{Alphanumeric, DistString}}; use rand::{seq::SliceRandom, Rng, distributions::{Alphanumeric, DistString}};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use tokio::{sync::Mutex, process::Command}; use tokio::{sync::Mutex, process::Command};
@ -325,7 +325,7 @@ async fn main() {
let mut interval = tokio::time::interval(Duration::from_secs(15)); let mut interval = tokio::time::interval(Duration::from_secs(15));
loop { loop {
interval.tick().await; interval.tick().await;
debug!("cleaning up"); trace!("cleaning up");
let now = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH).unwrap().as_secs(); let now = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH).unwrap().as_secs();