Add more debug logging.
CDK-431. Make logging variable name consistent.