minor delint, and log.debug addition