use logger.error instead (as suggested in #813)