wrap the costly operation in debug
Merge pull request #405 from dcapwell/dont-log-in-hot-path

wrap the costly operation in debug