mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-27 15:07:03 +00:00
add debugging methods on input::set
This commit is contained in:
parent
f7d6ebe76a
commit
d11a15aff9
1 changed files with 4 additions and 0 deletions
|
@ -195,10 +195,14 @@ where
|
||||||
Q::Value: Default,
|
Q::Value: Default,
|
||||||
{
|
{
|
||||||
fn set(&self, db: &DB, key: &Q::Key, value: Q::Value) {
|
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))
|
self.set_common(db, key, value, IsConstant(false))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_constant(&self, db: &DB, key: &Q::Key, value: Q::Value) {
|
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))
|
self.set_common(db, key, value, IsConstant(true))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue