Only log variable setting when in debug-mode.

  This was probably harmless, but it doesn't hurt to be
 correct.