Wrap log statements in debug guard condition