From d11a15aff9ed0b3c8c44675757a4d787f5b3131c Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 12 Oct 2018 05:27:42 -0400 Subject: [PATCH] add debugging methods on input::set --- src/input.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/input.rs b/src/input.rs index a90c92ea..9b4498a3 100644 --- a/src/input.rs +++ b/src/input.rs @@ -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)) } }