Don't throw away do_task error, log it

This commit is contained in:
Luke D Jones
2020-09-24 08:10:05 +12:00
parent 622cd9d943
commit 5753160e91

View File

@@ -126,7 +126,10 @@ fn start_daemon() -> Result<(), Box<dyn Error>> {
for ctrl in tasks.iter() {
if let Ok(mut lock) = ctrl.try_lock() {
lock.do_task().ok();
lock.do_task().map_err(|err| {
warn!("do_task error: {}", err);
})
.ok();
}
}
});