Log errors in index self_trigger
This commit is contained in:
parent
e64435efa5
commit
50421e91d6
1 changed files with 4 additions and 1 deletions
|
@ -482,7 +482,10 @@ pub fn self_trigger(db: &DB, command_buffer: &Arc<CommandSender>) {
|
||||||
.map_err(|e| Error::new(e))
|
.map_err(|e| Error::new(e))
|
||||||
})
|
})
|
||||||
.map(|s: MiscSettings| s.index_sleep_duration_seconds)
|
.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));
|
thread::sleep(time::Duration::from_secs(sleep_duration as u64));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue