diff --git a/src/index.rs b/src/index.rs index feac2af..ac66355 100644 --- a/src/index.rs +++ b/src/index.rs @@ -482,7 +482,10 @@ pub fn self_trigger(db: &DB, command_buffer: &Arc) { .map_err(|e| Error::new(e)) }) .map(|s: MiscSettings| s.index_sleep_duration_seconds) - .unwrap_or(1800) // TODO log error + .unwrap_or_else(|e| { + error!("Could not retrieve index sleep duration: {}", e); + 1800 + }) }; thread::sleep(time::Duration::from_secs(sleep_duration as u64)); }