Reduce redundancy of log.debug(...) here ?