suppress evaluate block in debug log

The local variable is evaluated when the block object is created, not at `yield`. 
This patch suppresses the evaluation if debug log is not required.