Store::config() added, mainly for debugging use

This commit is contained in:
Matthias Beyer 2016-03-25 15:09:21 +01:00
parent 9f8a648600
commit ad18091b88

View file

@ -240,6 +240,11 @@ impl Store {
Ok(store) Ok(store)
} }
/// Get the store configuration
pub fn config(&self) -> Option<&Value> {
self.configuration.as_ref()
}
fn storify_id(&self, id: StoreId) -> StoreId { fn storify_id(&self, id: StoreId) -> StoreId {
debug!("Create new store id out of: {:?} and {:?}", self.location, id); debug!("Create new store id out of: {:?} and {:?}", self.location, id);
let mut new_id = self.location.clone(); let mut new_id = self.location.clone();