reconfigure ntffy + add more logs
All checks were successful
Run Check Script / check (pull_request) Successful in 1m9s

This commit is contained in:
Ian Letourneau
2025-08-12 12:06:53 -04:00
parent 102aa2bdf0
commit 39aaf7c374
5 changed files with 22 additions and 29 deletions

View File

@@ -5,7 +5,12 @@ use harmony::{
};
use indicatif::MultiProgress;
use indicatif_log_bridge::LogWrapper;
use std::sync::{Arc, Mutex};
use log::error;
use std::{
sync::{Arc, Mutex},
thread,
time::Duration,
};
use crate::progress::{IndicatifProgressTracker, ProgressTracker};
@@ -59,6 +64,7 @@ async fn handle_events(base_progress: MultiProgress) {
&format!("\n{} Harmony completed\n\n", crate::theme::EMOJI_HARMONY),
);
progress_tracker.add_section("harmony-finished", "\n\n");
thread::sleep(Duration::from_millis(200));
return false;
}
HarmonyEvent::TopologyStateChanged {
@@ -157,6 +163,7 @@ async fn handle_events(base_progress: MultiProgress) {
_ => progress_tracker.fail_task(&task_key, &outcome.message),
},
Err(err) => {
error!("Interpret error: {err}");
progress_tracker.fail_task(&task_key, &err.to_string());
}
}