m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-15 00:23:48 -05:00

Better logging on server
Some checks are pending
CI / build-binary (push) Waiting to run
CI / build-image (push) Waiting to run

This commit is contained in:
Sergio
2024-09-16 17:42:02 +03:00
parent 0136850200
commit 5bf7269aca

View File

@@ -114,8 +114,13 @@ impl ServerData {
s s
} }
async fn refresh(&mut self) { async fn refresh(&mut self) {
let start = Local::now().timestamp_millis();
if !self.raw_updates.is_empty() {
info!("Refreshing data"); info!("Refreshing data");
}
let updates = sort_update_vec(&get_all_updates(&self.options).await); let updates = sort_update_vec(&get_all_updates(&self.options).await);
let end = Local::now().timestamp_millis();
info!("✨ Checked {} images in {}ms", updates.len(), end - start);
self.raw_updates = updates; self.raw_updates = updates;
let template = liquid::ParserBuilder::with_stdlib() let template = liquid::ParserBuilder::with_stdlib()
.build() .build()