replace print error by LOG.error