changed log.error to log.debug