add debugging methods on input::set

This commit is contained in:
Niko Matsakis 2018-10-12 05:27:42 -04:00
parent f7d6ebe76a
commit d11a15aff9

View file

@ -195,10 +195,14 @@ where
Q::Value: Default,
{
fn set(&self, db: &DB, key: &Q::Key, value: Q::Value) {
log::debug!("{:?}({:?}) = {:?}", Q::default(), key, value);
self.set_common(db, key, value, IsConstant(false))
}
fn set_constant(&self, db: &DB, key: &Q::Key, value: Q::Value) {
log::debug!("{:?}({:?}) = {:?}", Q::default(), key, value);
self.set_common(db, key, value, IsConstant(true))
}
}