Not related to the issue - but maybe wrap in logger.isDebugEnabled()