change log.error to log.debug